Warren Stringer warren at muse.com
Sat Jun 2 20:47:00 CEST 2007

Oops, forgot to cut and paste the point, to this:
> > - there is no Python error for "you
> > cannot do this with this object, but you can do it with other objects
> > of the same type".
> Yes there is:
> #------------------------
> def yo(): print "yo"
> def no(): print blah
> yo()
> no()
> Starting Python debug run ...
> yo
> Traceback (most recent call last):...
> NameError: global name 'blah' is not defined
> #------------------------

The point is that if the object is ill formed, then you get a traceback

But, as this is an addendum to the other post, please read that first. 

Now, I really am out of here.

More information about the Python-list mailing list