c[:]()
Steve Holden
steve at holdenweb.com
Tue Jun 5 08:06:48 EDT 2007
Warren Stringer wrote:
> 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
> regardless.
>
> But, as this is an addendum to the other post, please read that first.
>
> Now, I really am out of here.
>
Say, who *was* that masked man? ...
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
More information about the Python-list
mailing list