is this a bug?
vasvir at iit.demokritos.gr
Thu Aug 16 22:52:08 CEST 2001
Brian Quinlan wrote:
> The bottom line is that you should rarely use the "is" operator except
> when testing if an object is None (there is only one None object in
So is it safe to do?
if type(a) is type(b): blah blah
If it is, doesn't this mean that the type builtin always returns the same (pre
allocated) object for each type?
I would like also to thank you as everybody else who posted a response to my
somewhat silly (newbie) question.
More information about the Python-list