On Jul 16, 7:01 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED]
central.gen.new_zealand> wrote:
> In message
> <[EMAIL PROTECTED]>, Craig
>
> Allen wrote:
> > ... the ideal is still that
>
> > tl = TehLibrary() would always return the same object.
> >> 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!
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to