Proposal for .py2, py3, etc. extensions. Was: A way to accommodate laguage changes

Bjorn Pettersen BPettersen at NAREX.com
Tue Jul 24 23:47:38 CEST 2001


> From: James Logajan [mailto:JamesL at Lugoj.Com]
 
[snip]

> In the interest of proposing a solution everyone can live with, may I
> suggest adoption of new module name extensions? A module 
> named "module.py2"
> will not be picked up or understood by Python 1.x on any 
> platforms that I am
> aware of. These would be compiled to either ".pyc", ".py2c", 
> or ".pc2",
> depending on whether one can compile the new semantics into code old
> interpreters can handle, and whether it is now okay to allow 
> more than 3
> letters in file extensions on all popular platforms and file 
> systems. But
> hopefully everyone gets the idea.
> 
> Anyone see any insurmountable flaws with this? (Just trying 
> to help; I hate
> to abandon Python without at least trying one diplomatic 
> solution to at
> least one serious objection.)

I like the idea, however Python source is not always in a file (e.g. zip
archives, ZODB databases, etc.)

-- bjorn




More information about the Python-list mailing list