YA-Newbie: Progress (but still baffled by deepcopy/pickle issues...:)

Fred Pacquier fredp at multimania.com.nospam
Fri Oct 1 04:07:54 EDT 1999


greg.ewing at compaq.com (Greg Ewing) said :

>> # in Card __init__:
>>                 if ... : self.src = 0  # store an index instead of
>>                 bitmap ref. else : self.src = 1
>> # in Stack showrow():
>>             srcDC.SelectObject(CardFaces[self.Cards[row].src])
>> This seems to work flawlessly, although I don't understand why.
>
>Sounds like when you use references to the bitmaps, deepcopy is
>trying to copy the bitmap objects and screwing up somehow.

Maybe, yes. I have a hunch it may be a problem in the wxWindows/wxPython 
interface, in which case it's probably hard to find.

-- 
YAFAP : http://www.multimania.com/fredp/




More information about the Python-list mailing list