[New-bugs-announce] [issue26725] list() destroys map object data
Steven Reed
report at bugs.python.org
Sat Apr 9 16:22:26 EDT 2016
New submission from Steven Reed:
Example repro:
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> x=map(bool,[1,0,0,1,1,0])
>>> x
<map object at 0x0000000000AC51D0>
>>> list(x)
[True, False, False, True, True, False]
>>> list(x)
[]
>>> x
<map object at 0x0000000000AC51D0>
----------
components: Library (Lib)
messages: 263111
nosy: Steven Reed
priority: normal
severity: normal
status: open
title: list() destroys map object data
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26725>
_______________________________________
More information about the New-bugs-announce
mailing list