[Gordon] > > With Thomas's changes to PyImport_ImportModuleEx, this is > > largely taken care of (it gets routed through __import__). So > > with the above bootstrap code, C code will import from my .pyz > > as well. [Jim Ahsltrom] > I am not sure if you are saying that code already exists to > import from zip archives, or that iu4.py should be used as > the basis. > Neither. I thought you were referring to the Py 1.5-timeframe problem of C code using PyImport_ImportModule* and bypassing all hooks. > I think the best approach is for me to write up a PEP based > on the discussions so far, and let everyone criticize. The > proposal is only to import from zip archives, not > whether to replace imputil.py with iu4.py. Does "importing from zip archives" really need a PEP? It's already quasi-official in that Jython and MacPython implement it. The problem it exposes (the fact that the C code makes it difficult to do for packages) is certainly a good topic for discussion and is part of the reason Greg wrote imputil and I wrote iu4. - Gordon
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