[Python-ideas] Fwd: improve compatibility
Liam Marsh
liam.marsh.home at gmail.com
Mon Dec 22 14:06:52 CET 2014
"""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 <ncoghlan at gmail.com>:
> On 22 December 2014 at 10:17, Eric V. Smith <eric at trueblade.com> 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 at gmail.com | Brisbane, Australia
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141222/c7774bb7/attachment-0001.html>
More information about the Python-ideas
mailing list