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.
Created on 2008年03月19日 19:34 by dangyogi, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg64092 - (view) | Author: Bruce Frederiksen (dangyogi) | Date: 2008年03月19日 19:34 | |
2to3, svn rev 61623 translates itertools.imap(lambda x: ..., ...) into a list comprehension. This should be translated instead into a generator expression so that doing itertools.imap on infinite iterators still works. |
|||
| msg64094 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2008年03月19日 20:28 | |
Why isn't itertools.imap() being translated directly to builtins.map()? |
|||
| msg64114 - (view) | Author: David Wolever (wolever) * (Python committer) | Date: 2008年03月19日 22:25 | |
itertools.imap is being translated directly to map... But I bet this is another one of those ordering problems -- itertools.imap is converted to the map, then the map is converted to list(map(...)) because fix_map doesn't know that map was already fixed. |
|||
| msg64130 - (view) | Author: David Wolever (wolever) * (Python committer) | Date: 2008年03月20日 00:10 | |
Ok, I've added explicit ordering to fixers in r61654, fixing this issue. |
|||
| msg64131 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2008年03月20日 00:15 | |
Thanks David. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:32 | admin | set | github: 46679 |
| 2008年03月20日 00:15:37 | rhettinger | set | messages: + msg64131 |
| 2008年03月20日 00:10:53 | wolever | set | status: open -> closed messages: + msg64130 |
| 2008年03月19日 22:25:20 | wolever | set | assignee: collinwinter -> wolever messages: + msg64114 nosy: + wolever |
| 2008年03月19日 20:28:29 | rhettinger | set | nosy:
+ rhettinger messages: + msg64094 |
| 2008年03月19日 19:34:53 | dangyogi | create | |