A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/103740.html below:

Congruence of 'map' and 'for' broken in 2.1??

Congruence of 'map' and 'for' broken in 2.1?? Congruence of 'map' and 'for' broken in 2.1??Neil Schemenauer nas at python.ca
Fri Apr 27 17:47:01 EDT 2001
nanotech at europa.com wrote:
> OK, now that my subject line hooked you :) I am trying to determine
> why I can not use fh.xreadlines() in map:

Use .readlines() instead.  .xreadlines() is a lazy sequence.
map() could work on the object that xreadlines() returns but I
guess its not smart enough.  Patches submitted to SourceForge
will be gladly accepted. :-)

BTW, this is not something that broke in 2.1 since earlier
versions of Python did not have xreadlines().  

  Neil


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4