@@Manfred_Z Simply put, when python find more than one directory without init file across multiple distribution, it consider them namespace package And if python find directory with init file, it consider it a regular package.
and why can python not describe this or what a pyproject.toml file is in its own tutorial xD I am using python at work and until recently it all was the usual "just some .py files in a directory", now its a whole package system with gitlab CI/CD and package registry - and i still want to redo everything in C# or rust just for the benefit of a) known package structure (i dont care how it looks, i just want someone to tell me which is correct) and b) a compiler
I have to admit, that I now understand python packaging even less than before. What the hell? Why is python merging both paths? I expected the one module to be available under cart.product and the other under checkout.product
Haha learned something new today. Didnt know how moronic packaing was implemented in python. Adds flawless to features like dunder methods. If you want to get an example of how not to implement a feature in a programming language, just check how guido did it and dont do it like that.
It's weird that I used this video to understand how packaging works in ROS (Robot Operating System). Thanks!
@@codewithlenny Thank you for your support bro
It would’ve been useful to explain the difference between namespace and regular packages.
@@jmreagle Sure in the next video, in depth. Thanks
Do you think people creating AI generated videos would care for this? Lol
The fact that it is even searching completely separate directory trees is insane to me
Nice explanation, good content keep it up
@@nottomention-h8w thanks for your support bro
it is very complicated. I dont get it.😢
@@Manfred_Z Simply put, when python find more than one directory without init file across multiple distribution, it consider them namespace package
And if python find directory with init file, it consider it a regular package.
Take a paper and pen, draw or write there everything step by step. It helps me to keep tracks of things.
Me too 😞
Great video, just what I was looking for. Could you share some resources so that I can research more?
Search for packaging in Python and you'll get some
packaging.python.org/en/latest/guides/packaging-namespace-packages/
Nice explanation! But, you got to be kidding me! In what universe is this simple?
and why can python not describe this or what a pyproject.toml file is in its own tutorial xD
I am using python at work and until recently it all was the usual "just some .py files in a directory", now its a whole package system with gitlab CI/CD and package registry - and i still want to redo everything in C# or rust just for the benefit of a) known package structure (i dont care how it looks, i just want someone to tell me which is correct) and b) a compiler
Just don't name things carelessly?
Really good content.
Thanks for support
I have to admit, that I now understand python packaging even less than before. What the hell? Why is python merging both paths? I expected the one module to be available under cart.product and the other under checkout.product
It doesn't
Haha learned something new today. Didnt know how moronic packaing was implemented in python. Adds flawless to features like dunder methods. If you want to get an example of how not to implement a feature in a programming language, just check how guido did it and dont do it like that.
Thanks, I hate it 😂
why is this so complicated, feels like trying to be too clever, maybe i'm dumb
This is mad....