Re: [Python-Dev] __file__

March 1, 2010
6:09 a.m.
Greg Ewing <greg.ewing@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.
+1 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. Larry
5555
Age (days ago)
5555
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bugbee, Larry