Python 2.7 parser bug on syntax for set literals ?

Steve Howe howesteve at googlemail.com
Sun Oct 24 06:40:19 CEST 2010


Hello,

This looks like a parser bug, but it's so basic I'm in doubt. Can
anyone confirm ?

>>> import sys
>>> sys.version
'2.7.0+ (r27:82500, Sep 15 2010, 18:14:55) \n[GCC 4.4.5]'
>>> ({'', 1}.items())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'set' object has no attribute 'items'

Thanks!
--
Howe
howesteve at gmail.com



More information about the Python-list mailing list