[Python-bugs-list] [ python-Bugs-591748 ] Implementation bug

noreply@sourceforge.net noreply@sourceforge.net
Tue, 06 Aug 2002 14:05:24 -0700


Bugs item #591748, was opened at 2002-08-06 14:05
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591748&group_id=5470

Category: Windows
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Abhijit Sengupta (sengupta2)
Assigned to: Tim Peters (tim_one)
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)

       

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591748&group_id=5470