Fredrik Lundh wrote: > 4) [] and {} always create a new object every time they're evaluated.
Not quite. The empty tuple is cached: >>> a = () >>> b = () >>> a is b True Cheers, Brian -- http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote: > 4) [] and {} always create a new object every time they're evaluated.
Not quite. The empty tuple is cached: >>> a = () >>> b = () >>> a is b True Cheers, Brian -- http://mail.python.org/mailman/listinfo/python-list