[issue8153] 'set' union() fails in specific use case
Frank Rene Schaefer
report at bugs.python.org
Tue Mar 16 07:17:32 CET 2010
New submission from Frank Rene Schaefer <fschaef at gmail.com>:
The union operation fails in the following use case
Python 2.6.4 (r264:75706, Jan 30 2010, 22:50:05)
[GCC 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]] on linux2
>>> def func():
... a = set([0])
... a.pop()
... b = set([1, 2])
... a.union(b)
... return a
...
>>> func()
set([])
Note, that is does *not* fail if it is *not* inside a function, i.e.
>>> a = set([0])
>>> a.pop()
0
>>> b = set([1, 2])
>>> a.union(b)
set([1, 2])
>>>
----------
components: Interpreter Core
messages: 101154
nosy: fschaef2
severity: normal
status: open
title: 'set' union() fails in specific use case
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8153>
_______________________________________
More information about the Python-bugs-list
mailing list