[pypy-issue] [issue1191] behavior change in sets infix operation
Aric
tracker at bugs.pypy.org
Sat Jun 23 20:45:09 CEST 2012
New submission from Aric <aric.hagberg at gmail.com>:
I noticed this change in pypy-1.9. The difference operator works differently
for infix vs explicit (set.difference()). e.g.
# OK
s = set([0])
b = set()
d = s.difference(b)
print(d) # set([0])
n = s.pop()
print(d) # set([0])
# WRONG?
s = set([0])
b = set()
d = s - b
print(d) # set([0])
n = s.pop()
print(d) # set([])
$ pypy -v
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:38:48)
[PyPy 1.9.0 with GCC 4.4.3] on linux2
----------
messages: 4501
nosy: hagberg, pypy-issue
priority: bug
status: unread
title: behavior change in sets infix operation
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1191>
________________________________________
More information about the pypy-issue
mailing list