Re: How do I catch ExpatError exception?

2006-08-16 Thread Mark Winrock
Shuaib wrote: > Hey! > > I am getting this exception. > > xml.parsers.expat.ExpatError > > But I am not able to catch it with "except > xml.parsers.expat.ExpatError:" It says "NameError: global name 'xml' is > not defined". > > I am also not able to catch it with "except ExpatError:" Gives > "N

no longer can set breakpoint on 'pass' statement?

2006-08-16 Thread Mark Winrock
Can someone point me to some documentation as to why pdb breakpoints are not working on 'pass' statements (at least on 2.4.1)? I was used to that working in the 2.2.3 build I was using up to this last year. I just cant seem to find anything on it. Thanks! -- http://mail.python.org/mailman/list

Re: text analysis in python

2005-04-03 Thread Mark Winrock
Maurice Ling wrote: Hi, I'm a postgraduate and my project deals with a fair bit of text analysis. I'm looking for some libraries and tools that is geared towards text analysis (and text engineering). So far, the most comprehensive toolkit in python for my purpose is NLTK (natural language tool

Re: instance name

2005-04-02 Thread Mark Winrock
max(01)* wrote: hi. is there a way to define a class method which prints the instance name? e.g.: >>> class class_1: ... def myName(self): ... what should i do here ... >>> instance_1 = class_1() >>> instance_1.myName() 'instance_1' >>> bye macs macs, The object instance doesn't k