New submission from Frank Rene Schaefer <fsch...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue8153> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com