[issue1290] xml.dom.minidom not able to handle utf-8 data

2007-10-17 Thread Sharmila Sivakumar
Sharmila Sivakumar added the comment: Oops Facundo, that will work. It actually fails * after the dom construction* when you do mydom.firstChild.childNodes I request you to try it again. The prob is there is some encoding and decoding done within the parser, and it uses the default encoding

[issue1290] xml.dom.minidom not able to handle utf-8 data

2007-10-17 Thread Sharmila Sivakumar
Sharmila Sivakumar added the comment: Thanks for your quick response Facundo. I'm working on Ubuntu 7.04, python 2.5.1 Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 This error occurs when the default encoding is 'ascii'. When I change the default

[issue1631171] implement warnings module in C

2007-10-17 Thread Neal Norwitz
Changes by Neal Norwitz: -- assignee: nnorwitz -> brett.cannon _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Uns

[issue1631171] implement warnings module in C

2007-10-17 Thread Neal Norwitz
Neal Norwitz added the comment: I think this is good enough for now. The approach will probably stand even if the details change. Go for it! _ Tracker <[EMAIL PROTECTED]> _ ___

[issue1289] Typo in Context Manager Types

2007-10-17 Thread Facundo Batista
Facundo Batista added the comment: Fixed in rev 58531. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Pyt

[issue1289] Typo in Context Manager Types

2007-10-17 Thread Nathan Haines
Nathan Haines added the comment: This typo is in the Python Library Reference manual, section 3.10, for versions 2.5, 2.6, and 3.0. __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1290] xml.dom.minidom not able to handle utf-8 data

2007-10-17 Thread Facundo Batista
Facundo Batista added the comment: Downloaded the testdata.txt file, and yes, it's UTF-8: [EMAIL PROTECTED]:~/devel$ file testdata.txt testdata.txt: UTF-8 Unicode text But I opened it perfectly! Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 Ty

[issue1289] Typo in Context Manager Types

2007-10-17 Thread Facundo Batista
Facundo Batista added the comment: Where this happens? In the documentation? In the PEP? Do you have the URL where you found this? -- nosy: +facundobatista __ Tracker <[EMAIL PROTECTED]> _

[issue1580738] httplib hangs reading too much data

2007-10-17 Thread Facundo Batista
Facundo Batista added the comment: Fixed in rev 58530 (also added a test case) -- resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue1290] xml.dom.minidom not able to handle utf-8 data

2007-10-17 Thread Sharmila Sivakumar
New submission from Sharmila Sivakumar: I try to load the data in the testdata.txt file into a dom. I tried import xml.dom.minidom as dom data = open('testdata.txt','r').read() mydom = dom.parseString(data) I get the following error >>> mydom.firstChild.childNodes Traceback (most recent call l

[issue1289] Typo in Context Manager Types

2007-10-17 Thread Nathan Haines
New submission from Nathan Haines: In the first sentence in the ContextManager.__exit__() section, "exception" is spelled "expection". -- components: Documentation messages: 56510 nosy: nhaines severity: normal status: open title: Typo in Context Manager Types type: rfe versions: Python