[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-30 Thread Takeshi Matsuyama
Takeshi Matsuyama added the comment: Could someone close this? ___ Python tracker <http://bugs.python.org/issue5036> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-27 Thread Takeshi Matsuyama
Takeshi Matsuyama added the comment: >From msg80438 >You should reset it by self.data = '' at end_element(). It seems that we should reset it at start_element() like this, def start_element(self, name, attrs): ...abbr... if name == '

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-24 Thread Takeshi Matsuyama
Takeshi Matsuyama added the comment: a mistake of my former message, briefly -> in detail >Please read "The ContentHandler.characters() callback is missing data!" >http://www.saxproject.org/faq.html I was just reading above site. it is now very clear for me. Thanks kawai an

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-24 Thread Takeshi Matsuyama
Takeshi Matsuyama added the comment: Hi kawai. I got correct output by modifying the code like you say, but I still cannot understand why this happens. Could you tell me more briefly, or point any documents about it? I can't find any notes which say don't pass strings but app

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-23 Thread Takeshi Matsuyama
Takeshi Matsuyama added the comment: Thanks for reply! >If the xml file is small enough, could you attach it to the issue? Or >provide a download location? Sorry, I found here. http://webcvs.freedesktop.org/icon-theme/icon-naming-utils/legacy-icon-mapping.xml?revision=1.75&content

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-22 Thread Takeshi Matsuyama
New submission from Takeshi Matsuyama : When I make a dictionary by parsing "legacy-icon-mapping.xml"(which is a part of icon-naming-utils[http://tango.freedesktop.org/Tango_Icon_Library]) with the following script, the three keys of the dictionary are collapsed if the "buffer_tex