From: SourceForge.net <no...@so...> - 2004-10-23 22:00:40
|
Bugs item #1052913, was opened at 2004-10-23 20:47 Message generated for change (Settings changed) made by pedronis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1052913&group_id=12867 Category: Core Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: difference in behavior when comparing the empty tuple Initial Comment: Examples with various implementations of Python comparing the empty tuple to itself. Jython 2.1 on java1.4.2_05 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> () is () 0 Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> () is () True Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> () is () 1 Python 1.5.2 (#0, Jun 10 2002, 15:44:54) [MSC 32 bit (Intel)] on win32 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> () is () 1 ---------------------------------------------------------------------- >Comment By: Samuele Pedroni (pedronis) Date: 2004-10-23 22:00 Message: Logged In: YES user_id=61408 the fact that the empty tuple is a singleton in CPython is an implementation detail. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1052913&group_id=12867 |