[Python-Dev] [Python-checkins] Using itertools in modules that are part of the build chain (Re: r76264 - python/branches/py3k/Lib/tokenize.py)

Benjamin Peterson benjamin at python.org
Sun Nov 15 05:01:07 CET 2009


2009/11/14 Nick Coghlan <ncoghlan at gmail.com>:
> This does constrain where we can use itertools - if we want carte
> blanche to use it anywhere in the standard library, even those parts
> that are imported as part of the build chain, we'll need to bite the
> bullet and make it a builtin module rather than a separately built
> extension module.

I have another unpleasant but slightly less hacky solution. We put
detect_encoding in linecache where it is actually used.


-- 
Regards,
Benjamin


More information about the Python-Dev mailing list