[Python-Dev] __file__

Bugbee, Larry larry.bugbee at boeing.com
Mon Mar 1 07:09:00 CET 2010

Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Having .py files around that aren't source text could lead 
> to a lot of confusion, given that most platforms these days 
> decide which application to open for a given file based 
> solely on the filename extension. I wouldn't enjoy trying 
> to open a .py file only to have my text editor blow up 
> because it was actually a binary file.
> So on balance I think it's a bit too kooky for my taste.


Add to that the inverse...  I will cleanup directories based on the suffix keeping the .py and deleting .pyc and .pyo.  Overloading a source file suffix is not good.


More information about the Python-Dev mailing list