if instance exists problem ..

Diez B. Roggisch deets at nospam.web.de
Thu Oct 18 05:09:32 EDT 2007


Ben Finney wrote:

> "Diez B. Roggisch" <deets at nospam.web.de> writes:
> 
>> stef mientki schrieb:
>> > What should I do to the same simple test for existance ?
>> 
>> Use isinstance(obj, type).
> 
> No, that's *far* more specific than "does it exist", and will give
> false negatives.

I've misread the post entirely, so just... discard my message :)

Diez



More information about the Python-list mailing list