Paul Moore wrote: > On 2/11/06, Nick Coghlan <ncoghlan at gmail.com> wrote: >> I finally finished updating PEP 338 to comply with the flexible importing >> system in PEP 302. >> >> The result is a not-yet-thoroughly-tested module that should allow the -m >> switch to execute any module written in Python that is accessible via an >> absolute import statement. > > Does this implementation resolve http://www.python.org/sf/1250389 as > well? A reading of the PEP would seem to imply that it does, but the > SF patches you mention don't include any changes to the core, so I'm > not sure... I copied the module and test packages over to my Python 2.4 site packages, and running modules from inside zip packages does indeed work as intended (with an explicit redirection through runpy, naturally). Kudos to the PEP 302 folks - I only tested with runpy.py's Python emulation of PEP 302 style imports for the normal file system initially, but zipimport still worked correctly on the first go. For Python 2.5, this redirection from the command line switch to runpy.run_module should be automatic. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
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