I have a class, and create 4 instances of this class as per below:
class AuctionList:
def __init__(self):
self.Clear_Auction_List()
# Data
auctionList = []
#Functions
....
currentAuctionList = AuctionList()
previousCurrentAuctionList = AuctionList()
finishedAuctionList = AuctionList()
successfulAuctionList = AuctionList()
The class has a list variable and a few functions to manipulate it.
When I add something to the first list, for some reason it also adds it to all the other instances also.
currentAuctionList.AddToList("Tree")
I then call a method in the class that returns the length of the list for each instance of the class, and they all say they are length of 1, even though I only added it to the first class.
finished auctionlist length:
1
successful auctionlist length:
1
current auctionlist length:
1
previous current auctionlist length:
1
I expect this is some kind of newbie trap, or something.