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 ned.deily
Recipients Steven Reed, ned.deily
Date 2016-04-09.20:28:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460233734.39.0.631652399693.issue26725@psf.upfronthosting.co.za>
In-reply-to
Content
This is behaving as expected.  In Python 3, map() returns an iterator, so the first list(x) exhausts that iterator so that the second list(x) returns an empty list.  This is a difference from Python 2 where map() returns a list.  See:

https://docs.python.org/3.5/whatsnew/3.0.html#views-and-iterators-instead-of-lists
https://docs.python.org/3/library/functions.html#map
History
Date User Action Args
2016-04-09 20:28:54ned.deilysetrecipients: + ned.deily, Steven Reed
2016-04-09 20:28:54ned.deilysetmessageid: <1460233734.39.0.631652399693.issue26725@psf.upfronthosting.co.za>
2016-04-09 20:28:54ned.deilylinkissue26725 messages
2016-04-09 20:28:54ned.deilycreate