On Feb 01 2016, mike.romberg at comcast.net wrote: >>>>>> " " == Barry Warsaw <barry at python.org> writes: > > >> On Feb 01, 2016, at 11:40 AM, R. David Murray wrote: > > >> I don't know about anyone else, but on my own development > >> systems it is not that unusual for me to *edit* the > >> stdlib files (to add debug prints) while debugging my own > >> programs. Freeze would definitely interfere with that. > >> I could, of course, install a separate source build on my > >> dev system, but I thought it worth mentioning as a > >> factor. > > [snip] > > > But even with system scripts, I do need to step through > > them occasionally. If it were a matter of changing a > > shebang or invoking the script with a different Python > > (e.g. /usr/bin/python3s vs. /usr/bin/python3) to get the > > full unpacked source, that would be fine. > > If the stdlib were to use implicit namespace packages > ( https://www.python.org/dev/peps/pep-0420/ ) and the various > loaders/importers as well, then python could do what I've done > with an embedded python application for years. Freeze the > stdlib (or put it in a zipfile or whatever is fast). Then > arrange PYTHONPATH to first look on the filesystem and then look > in the frozen/ziped storage. Presumably that would eliminate the performance advantages of the frozen/zipped storage because now Python would still have to issue all the stat calls to first check for the existence of a .py file. Best, -Nikolaus (No Cc on replies please, I'm reading the list) -- GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F »Time flies like an arrow, fruit flies like a Banana.«
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4