__pycache__, one more good reason to stck with Python 2?

Ethan Furman ethan at stoneleaf.us
Tue Jan 18 09:09:11 EST 2011


Carl Banks wrote:
> On Jan 17, 10:17 am, jmfauth <wxjmfa... at gmail.com> wrote:
 >> ...
>> If I get (stupidly, I agree) a .pyc file and want to test
>> it. Should I create manually a cache alongside my test.py
>> script?
> 
> Nope: according to PEP 3147 a standalone *.pyc should not be put in
> same directory where the source file would have been, not in the
> __pycache__ directory (it'll be considered stale otherwise).

Typo?

According to PEP 3147 a standalone *.pyc *should* (not should not) be 
put in the same directory where the source file would have been.

~Ethan~



More information about the Python-list mailing list