[issue31798] "abs__file__" in "Lib/site.py" fails for modules where "__file__" cannot be assigned a new value

2017-10-16 Thread Alexander McFarlane
Change by Alexander McFarlane : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31798] "abs__file__" in "Lib/site.py" fails for modules where "__file__" cannot be assigned a new value

2017-10-16 Thread Alexander McFarlane
New submission from Alexander McFarlane : The pythonnet module clr causes a TypeError when `abs__file__` attempts to run the following line: `m.__file__ = os.path.abspath(m.__file__)` Reproduction: ``` import clr cls.__file__ = 'example' ``` -- components: +Library (Lib) title: abs__

[issue31798] abs__file__ in "Lib/site.py"

2017-10-16 Thread Alexander McFarlane
Change by Alexander McFarlane : -- nosy: Alexander McFarlane priority: normal severity: normal status: open title: abs__file__ in "Lib/site.py" ___ Python tracker ___ __