You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know it's technically impossible to access __file__ when the module is being imported.
Regular Python modules are run with a dictionary which has been which has been pre-initialized with some values (__file__, __builtins__).
On the other hand, extension modules (like what Cython produces) have their init function run and then have the __file__ attribute set. (See Python/importdl.c).
Since this cannot be fixed, I guess it should be documented and closed.
test.pyx
Migrated from http://trac.cython.org/ticket/475
The text was updated successfully, but these errors were encountered: