[Distutils] PEP 376 up-to-date

Floris Bruynooghe floris.bruynooghe at gmail.com
Mon May 25 23:42:05 CEST 2009

On Mon, May 25, 2009 at 12:29:44PM +0200, Tarek Ziadé wrote:
> - prototype code : http://bitbucket.org/tarek/pep376/src/tip/pkgutil.py

def disable_cache():
    global _CACHE_ENABLED

/me thinks that might not be right...

Not sure if this is supposed to work in a situation where multiple
threads are using this API at the same time.  But for that case the
simple cache management might be too limiting (enable and disable are
global) and refactoring the functions which use the cache into an
object that can be instantiated with a flag whether to use the global
cache or not might be better.


Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org

More information about the Distutils-SIG mailing list