homepage

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 mgarabed
Recipients georg.brandl, lukasz.langa, mgarabed, rhettinger, skip.montanaro, skrah, vlachoudis
Date 2011年08月09日.15:07:32
SpamBayes Score 1.767958e-08
Marked as misclassified No
Message-id <1312902453.45.0.87676822882.issue12717@psf.upfronthosting.co.za>
In-reply-to
Content
Issue 11089 submitted a patch to 3.2 and 2.7 to address performance concerns with the latest updates to ConfigParser. In the implementation for 2.7.2, this patch was misapplied in the keys() function on line 573:
 for mapping in self_maps:
should be:
 for mapping in self._maps:
As a result the following raises a NameError:
>>> import ConfigParser
>>> ConfigParser._Chainmap()
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\Python27\lib\UserDict.py", line 172, in __repr__
 return repr(dict(self.iteritems()))
 File "C:\Python27\lib\UserDict.py", line 110, in iteritems
 for k in self:
 File "C:\Python27\lib\UserDict.py", line 97, in __iter__
 for k in self.keys():
 File "C:\Python27\lib\ConfigParser.py", line 573, in keys
 for mapping in self_maps:
NameError: global name 'self_maps' is not defined
History
Date User Action Args
2011年08月09日 15:07:33mgarabedsetrecipients: + mgarabed, skip.montanaro, georg.brandl, rhettinger, skrah, lukasz.langa, vlachoudis
2011年08月09日 15:07:33mgarabedsetmessageid: <1312902453.45.0.87676822882.issue12717@psf.upfronthosting.co.za>
2011年08月09日 15:07:32mgarabedlinkissue12717 messages
2011年08月09日 15:07:32mgarabedcreate

AltStyle によって変換されたページ (->オリジナル) /