19 August 2025
if I do,
1) In my_module/__init__.py
from .my_module import my_module # yes, the func name is the same as the module's name.
2) In my_module/my_module.py
def my_module(): ... # actual implementation code.
As you can see, I have to keep the package name, module name and func name with the *same* name, which I find kind of a conflicting, long lookup hierarchy, prone to error.
Oops, it didn't mark it as a reply.
id 7553442539Yeah I know but I am a beginner in this field that's why I don't have any idea
Then start to learn we don't code for others
id 7553442539Yeah I know but I am a beginner in this field that's why I don't have any idea
Use Chat GPT, Claude and more for that
id 6550928206Use Chat GPT, Claude and more for that
Do not recommend AI for that here, it's on the rules
Charly RománDo not recommend AI for that here, it's on the rules
Yeah, sorry, I don't like to recommend AI for that, but this guy definitely wants all the work done, not just to resolve a question
id 7553442539But help me in my activities
Make an attempt to write the Python code yourself. If you run into issues you can ask for help here
id 7553442539Are you learn whole python programming
If you don't know anything about Python, before you want to know the complete front- and back-end code for a project, you should start by learning the basics and fundamentals of the language