[pypy-issue] [issue1183] set difference operator does not return a new set if the 2nd operand is an empty set

raptium tracker at bugs.pypy.org
Tue Jun 19 06:56:34 CEST 2012


New submission from raptium <raptium at gmail.com>:

As the title, the attached piece of code has different results under pypy 1.9 and 
python 2.7.1

----------
files: set_test.py
messages: 4463
nosy: pypy-issue, raptium
priority: bug
status: unread
title: set difference operator does not return a new set if the 2nd operand is an empty set

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1183>
________________________________________
-------------- next part --------------
a = set([1,2,3])
b = set([])
c = a - b
c.remove(2)
print a, c


More information about the pypy-issue mailing list