This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients anjos, methane, steverweber
Date 2018-06-05.06:21:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528179662.29.0.592728768989.issue30167@psf.upfronthosting.co.za>
In-reply-to
Content
https://github.com/python/cpython/blob/f822549653d8d09bffff5b7dcddfdf12679a787c/Python/pythonrun.c#L391-L399

__file__ and __cached__ are added here.  And,

https://github.com/python/cpython/blob/f822549653d8d09bffff5b7dcddfdf12679a787c/Python/pythonrun.c#L441-L442

Only __file__ is removed here.  I feel __cached__ should be removed too.


On the other hand, if None is valid value for __cached__, site.abs_paths() should ignore it.

https://www.python.org/dev/peps/pep-3147/#file

> It is recommended that when nothing sensible can be calculated, implementations should set the __cached__ attribute to None.

It seems it's valid, and recommended for some cases.  So PR-6731 looks OK.
History
Date User Action Args
2018-06-05 06:21:02methanesetrecipients: + methane, anjos, steverweber
2018-06-05 06:21:02methanesetmessageid: <1528179662.29.0.592728768989.issue30167@psf.upfronthosting.co.za>
2018-06-05 06:21:02methanelinkissue30167 messages
2018-06-05 06:21:02methanecreate