Paul McNett wrote:

>> Note : I tried this
>>
>>>>> boogey = list()
>>>>> lbl = getattr(boogey, curlabel)
>> Traceback (most recent call last):
>>   File "<input>", line 1, in <module>
>> NameError: name 'curlabel' is not defined
>>
>> I guess the error raised by getattr would be NameError. I didn't use a
>> named error in my code just in case :)
> 
> It's because curlabel doesn't exist in the current namespace. Try:
> 
> boogey = list()
> lbl = getattr(boogey, "curlabel")
> 

Yep, that's it.




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to