Help! This is driving me insane!

kara.klosterman kara.klosterman at
Thu Sep 26 19:43:33 EDT 2002

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:

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!
Derek Basch

More information about the Python-list mailing list