Re: encoding ascii data for xml

2008-10-04 Thread Dillon Collins
On Friday 03 October 2008, harrelson wrote: > import xml.dom.minidom > print chr(3).encode('utf-8') > dom = xml.dom.minidom.parseString( "%s" % > chr(3).encode('utf-8') ) > > chr(3) is the ascii character for "end of line". [...] My > question is why doesn't encode() blow up? You just answered yo

Re: Why NOT only one class per file?

2007-04-04 Thread Dillon Collins
On Wednesday 04 April 2007, Chris Lasher wrote: > He doesn't find my arguments convincing, so I thought I'd ask here to > see why the Python idiom is the way it is: why should we NOT be > placing classes in their own separate files? Because it really just provides as an artificial limitation that