[Python-3000] distutils: usage of the 'map()' builtin breaks the parsing of MANIFEST.in

Amaury Forgeot d'Arc amauryfa at gmail.com
Sat Jul 26 22:11:55 CEST 2008


Lisandro Dalcin wrote:
> In module 'distutils.filelist', class 'FileList', method
> '_parse_template_line()', the 'map()' builtin is being used. Now
> 'map()' returns an iterator, and this iterator is exhausted in other
> methods (for the purpose of 'debug_print()' stuff) before the data is
> actually used.
>
> I'm currently monkey-patching like this, but a patch for 'distutils'
> perhaps should be implemented in terms of list comprehensions,
> removing the usage of 'map()' builtin.

It's now corrected in svn.
Thanks for the report, but next time, please use the bug tracker.

-- 
Amaury Forgeot d'Arc


More information about the Python-3000 mailing list