[Python-bugs-list] [ python-Bugs-591748 ] Implementation bug
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 06 Aug 2002 14:11:09 -0700
Bugs item #591748, was opened at 2002-08-06 21:05
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591748&group_id=5470
Category: Windows
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Abhijit Sengupta (sengupta2)
>Assigned to: Neil Schemenauer (nascheme)
Summary: Implementation bug
Initial Comment:
Using my Windows implementation, I observed that the
following piece of code (to find union of two lists)
modifies the first parameter value.
def setunion(x,y):
l=len(y)
p=x
for j in range(0,l):
z=y.pop(0)
y.append(z)
if(p.count(z)==0):
p.append(z)
return(p)
----------------------------------------------------------------------
>Comment By: Neil Schemenauer (nascheme)
Date: 2002-08-06 21:11
Message:
Logged In: YES
user_id=35752
Reset your brain: http://effbot.org/guides/python-objects.htm
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591748&group_id=5470