[pypy-issue] Issue #2326: empty tuple is not a singleton on pypy (pypy/pypy)

Daniel Holth issues-reply at bitbucket.org
Mon Jun 13 11:36:10 EDT 2016


New issue 2326: empty tuple is not a singleton on pypy
https://bitbucket.org/pypy/pypy/issues/2326/empty-tuple-is-not-a-singleton-on-pypy

Daniel Holth:

Not sure if this is a documented difference. The empty tuple appears to be a singleton on CPython but not on pypy. This function returns True on Python 2.7 and False on PyPy 5.3.0.

```
#!python

a = ()
b = ()
a is b
```





More information about the pypy-issue mailing list