This is driving me insane!
Derek Basch
dbasch at yahoo.com
Thu Sep 26 19:56:43 EDT 2002
Hello,
I created a very simple class that totals some data
but I am not getting the output from it that I would
expect at all.
Here is the class:
http://www.geocities.com/dbasch/insane.txt
I would expect to get:
[0, 0]
[0, 0]
[[0, 0]]
but I am getting:
[0, 0]
[0, 0]
[[1, 1]]
I dont understand how the 'grouptotals' list is
getting the incremented values prior to the
'grouptotalcounter' function being called.
furthermore, I can place a 'print grouptotals' right
after the errorlog append and it isnt the incremented
values! Please tell me this isnt a normal thing!
Thanks,
Derek Basch
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
More information about the Python-list
mailing list