In message
<[EMAIL PROTECTED]>, Craig
Allen wrote:

> On Jul 16, 7:01 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED]
> central.gen.new_zealand> wrote:
>>
>> >>> class TehLibrary(object) :
>>
>> ...     @classmethod
>> ...     def __new__(self, cls) :
>> ...         return self
>>
>> >>> s = TehLibrary()
>> >>> s == TehLibrary()
>>
>> True
> 
> That's great, I simply didn't find that when looking. Thanks!

Also note that

    s == TehLibrary

will be true (the instance equals the class). I assume that doesn't matter
for your purposes. :)
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to