[issue2953] _zip_directory_cache untested and undocumented

2013-04-07 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.3 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___

[issue2953] _zip_directory_cache untested and undocumented

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___ ___ Python-bugs-list

[issue2953] _zip_directory_cache untested and undocumented

2012-11-17 Thread Éric Araujo
Éric Araujo added the comment: Eric, as you know importlib, can you comment about this? If zipimport now works with the invalidate_caches system, then we do have a documented way of clearing the cache, and I would recommend closing this bug (the existing attribute should stay for compat, but

[issue2953] _zip_directory_cache untested and undocumented

2012-11-17 Thread Eric Snow
Eric Snow added the comment: I'll take a look but can't say when. My wife's is having a baby in the next couple days so I'm a bit swamped. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953

[issue2953] _zip_directory_cache untested and undocumented

2012-11-17 Thread Éric Araujo
Éric Araujo added the comment: No problem (and congratulations :) -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___ ___

[issue2953] _zip_directory_cache untested and undocumented

2010-10-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file13625/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___

[issue2953] _zip_directory_cache untested and undocumented

2010-10-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file13638/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___

[issue2953] _zip_directory_cache untested and undocumented

2010-10-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Could the recently-added functools.lru_cache help here? -- components: -Distutils nosy: +eric.araujo versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953

[issue2953] _zip_directory_cache untested and undocumented

2009-04-06 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: 2009/4/5 Tarek Ziadé rep...@bugs.python.org@psf.upfronthosting.co.za Tarek Ziadé ziade.ta...@gmail.com added the comment: Does distutils use _zip_directory_cache in any way? Not at all. But pkgutil does, Ah, OK. and uses to get a

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: _zip_directory_cache is part of the zipimport module (C module) you can find in Modules/zipimport.c. The tests are located here: ./Lib/test/test_zipimport.py _zip_directory_cache is a dict used by zipimporter_init to speed up the lookup.

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Maciek Fijalkowski
Maciek Fijalkowski fi...@genesilico.pl added the comment: The bug with this is that setuptools uses it (and even relies on what is there and in what order), while it has no single tests and no documentation. -- ___ Python tracker

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: while it has no single tests and no documentation. what it refers to ? zipimport, distutils or setuptools ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Maciek Fijalkowski
Maciek Fijalkowski fi...@genesilico.pl added the comment: it == _zip_directory_cache -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___ ___

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I am not sure what you would like to see added. in zipimport.c: - _zip_directory_cache: a dict, mapping archive paths to zip directory info dicts, as used in zipimporter._files. while there are no direct test, Lib/test/test_zipimport.py

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: maybe what's missing is a public API for the clear() method since setuptools uses it by calling it directly -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Maciek Fijalkowski
Maciek Fijalkowski fi...@genesilico.pl added the comment: setuptools at least deletes stuff from _zip_directory_cache (via _uncache function in easy_install.py). it also iterates over it and checks for existance of elements. What about documenting details about _zip_directory_cache: * does it

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Does distutils use _zip_directory_cache in any way? If not then setuptools is in the wrong here for using a private attribute and it is on them to make it work if the attribute does not exist, period. Otherwise someone will need to come up with a

[issue2953] _zip_directory_cache untested and undocumented

2009-04-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Does distutils use _zip_directory_cache in any way? Not at all. But pkgutil does, and uses to get a dirlist, so I guess a new API should be created in zipimport to handle this case as well. (I think it's some setuptools code originallyt,

[issue2953] _zip_directory_cache untested and undocumented

2009-04-04 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: - normal versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___

[issue2953] _zip_directory_cache untested and undocumented

2009-04-01 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Actually importlib does not test this; that is an old thing from an old sandbox version of importlib that I no longer use. I am assigning to Tarek as the better solution is for distutils to stop using this private attribute. -- assignee:

[issue2953] _zip_directory_cache untested and undocumented

2009-03-31 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: That's fortunate, because I can just reassign this to him :) -- assignee: georg.brandl - brett.cannon nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953

[issue2953] _zip_directory_cache untested and undocumented

2009-03-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I can't find a reference to _zip_directory_cache in distutils. Do you mean setuptools? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953

[issue2953] _zip_directory_cache untested and undocumented

2009-03-29 Thread Maciek Fijalkowski
Maciek Fijalkowski fi...@genesilico.pl added the comment: Seems I meant setuptools indeed. Note that brett's importlib contains some tests for _zip_directory_cache. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953

[issue2953] _zip_directory_cache untested and undocumented

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2953 ___ ___ Python-bugs-list mailing list

[issue2953] _zip_directory_cache untested and undocumented

2008-05-23 Thread Maciek Fijalkowski
New submission from Maciek Fijalkowski [EMAIL PROTECTED]: _zip_directory_cache has no single test nor piece of documentation. The only place where it's mentioned is a call to method .clear() on it in tests. Besides, it can be whatever. Despite _ prefix, which I would consider to be private,