[Python-3000] [Python-ideas] Namespaces are one honking great idea -- let's do more of those!
lists at cheimes.de
Sat Feb 2 17:31:41 CET 2008
Georg Brandl wrote:
> I would prefer a "python3" alias analogous to the current "python" alias,
> at least as long as Python 2.x is still in wide use.
> Having to type "python3.0" explicitly strikes me as unnecessarily verbose.
> As for module file name extensions, what speaks against allowing (not
> mandating) "py3" for Python 3.x modules?
File extensions are only important on Windows. Or does anybody know a
system which starts scripts based on the extension like Windows does?
I see two ways to solve the program for Windows:
* register additional file extensions for each Python version
like .py26, .pyw26 (for pythonw.exe), .py30 etc.
* Write a wrapper for Windows which inspects the first line of
a script, searches for "#! ... python2.6" or "#!python26" and
starts the right interpreter.
More information about the Python-3000