[New-bugs-announce] [issue31071] Bad error message about maps not iterable
Stefan Pochmann
report at bugs.python.org
Fri Jul 28 12:03:22 EDT 2017
New submission from Stefan Pochmann:
Python 3.6 makes it sound like maps aren't iterable:
>>> map(str, *map(int, [[]]))
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
map(str, *map(int, [[]]))
TypeError: type object argument after * must be an iterable, not map
More, including a likely explanation, in my question and its answer here:
https://stackoverflow.com/q/45363330/1672429
Apparently the TypeError from int([]) gets mistaken for a TypeError indicating non-iterability of the map object.
----------
messages: 299402
nosy: Stefan Pochmann
priority: normal
severity: normal
status: open
title: Bad error message about maps not iterable
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31071>
_______________________________________
More information about the New-bugs-announce
mailing list