This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Windson Yang
Recipients Windson Yang, methane, xiang.zhang, zach.ware
Date 2018-07-18.07:43:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531899829.39.0.56676864532.issue34134@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, we should not. But we can do this when use map function. the document gives a good example but doesn't say much about real differences between map and imap. Maybe we should add some notes like INADA suggest. 

map function will convert iterable to list if it doesn't implement __len__ function, so if you are using a generator, you should consider use imap. As well as add a warning about don't try to access the result outside the with statement. 

But if you guys think the docs are good enough, please close this issue.
History
Date User Action Args
2018-07-18 07:43:49Windson Yangsetrecipients: + Windson Yang, methane, zach.ware, xiang.zhang
2018-07-18 07:43:49Windson Yangsetmessageid: <1531899829.39.0.56676864532.issue34134@psf.upfronthosting.co.za>
2018-07-18 07:43:49Windson Yanglinkissue34134 messages
2018-07-18 07:43:49Windson Yangcreate