I have a following project structure: when I run python program_name from top level directory I get an error. It appears, that some of mine dependencies import the package with the same name as mine. Namely I import numpy in __main__.py and, somewhere deep inside, it has import package_name line. So instead of importing its dependency it import my package.
Tag: name-collision
How to avoid name collisions in python decorators functions
I would like to write a python decorator so that a function raising an exception will be run again until either it succeeds, or it reaches the maximum number of attempts before giving up. Like so : My problem is that I want a guarantee that no matter what names the kwargs contain, there cannot be a collision with the