"""That's suggesting mixing and matching between versions within the same
process space, which is highly unlikely to work correctly (except when
modules are specifically designed for that, as indicated by the
availability of backported versions on PyPI)."""
In fact, i was thinking about a small program, which just analize the file
for these commentaries, and asks the OS to launch the appropriate
"*real" *python
environnement, and finishes.
This small program will be also be able to chose the appropriate version by
scanning the import statements, and seeking for these imported modules in
the different environnements installed.
2014-12-22 1:27 GMT+01:00 Nick Coghlan
On 22 December 2014 at 10:17, Eric V. Smith
wrote: I thought he was looking for something like the py launcher, implemented for Windows as PEP 397, and discussed for Linux here: https://mail.python.org/pipermail/python-ideas/2014-April/027633.html
I interpreted the second suggestion in light of the first one, which included the point "-any imported py file will be able to choose which version it wants". That's suggesting mixing and matching between versions within the same process space, which is highly unlikely to work correctly (except when modules are specifically designed for that, as indicated by the availability of backported versions on PyPI).
Either way, there's a lot of prior art in this space that actually works pretty well once you're aware of its existence, which means future improvements are likely to come in the form of availability, usability, and discoverability improvements for already popular approaches, rather than introducing radical new concepts.
Cheers, Nick.
-- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/