Help! This is driving me insane!

kara.klosterman kara.klosterman at attbi.com
Thu Sep 26 19:43:33 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






More information about the Python-list mailing list