Accessing source code in zipped packages
About a month ago, I submitted two patches that address Pdb and doctest inability to load source code from modules with custom loaders such as modules loaded from zip files: http://bugs.python.org/issue4201 http://bugs.python.org/issue4197 The patches are very simple, basically calls to linecache.getline() need to be provided with the module's dict to enable linecache to find the module's __loader__. Is there a chance that these patches could make it to 2.6.1?
Alexander Belopolsky schrieb:
About a month ago, I submitted two patches that address Pdb and doctest inability to load source code from modules with custom loaders such as modules loaded from zip files:
http://bugs.python.org/issue4201 http://bugs.python.org/issue4197
The patches are very simple, basically calls to linecache.getline() need to be provided with the module's dict to enable linecache to find the module's __loader__.
There is also http://bugs.python.org/issue4223 which goes in the same direction. Georg
Georg Brandl wrote:
Alexander Belopolsky schrieb:
About a month ago, I submitted two patches that address Pdb and doctest inability to load source code from modules with custom loaders such as modules loaded from zip files:
http://bugs.python.org/issue4201 http://bugs.python.org/issue4197
The patches are very simple, basically calls to linecache.getline() need to be provided with the module's dict to enable linecache to find the module's __loader__.
There is also http://bugs.python.org/issue4223 which goes in the same direction.
I've assigned all 3 of those to myself, since I've been meaning to look at some zipimport related stuff anyway (the things I'm looking at are 2.7/3.1 related though, so I was waiting for the 3.0 release to be cut first). We already missed the 2.6.1 deadline though. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia ---------------------------------------------------------------
participants (3)
-
Alexander Belopolsky
-
Georg Brandl
-
Nick Coghlan