Heh, yet another questoinf rom me :)
Aahz Maruch
aahz at netcom.com
Sat Mar 25 12:24:06 EST 2000
BTW, please make sure to retain attributions for quotes. I've put mine
back in below.
In article <etdn1nngi3g.fsf at w20-575-109.mit.edu>,
Alex <alex at somewhere.round.here> wrote:
>Aahz:
>>
>> Actually, that should be
>>
>> class blaat:
>> def __init__ ( self, blaat2=0 , blaat3='', blaat4=''):
>> self.blaat2 = blaat2
>> self.blaat3 = blaat3
>> self.blaat4 = blaat4
>
>What can go wrong if you use class variables?
You can't have different values for each instance. Class variables
should only be used for information global to all instances of a class.
--
--- Aahz (Copyright 2000 by aahz at netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Usenet is not a democracy. It is a weird cross between an anarchy
and a dictatorship. --Aahz
More information about the Python-list
mailing list