On Fri, May 27, 2005 at 01:58:44PM +0200, Florent Guillaume wrote: > And all empty tuples are equal.
Not just equal, but all empty tuples are *identical*, so () is () == True. I had no idea this was so :-\ > In python 2.3, the idiom most commonly found is to use marker = object(). Thanks for that. -- Paul Winkler http://www.slinkp.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )