[Python-talk] Initializing a class...
Kent Johnson
kent37 at tds.net
Wed Sep 2 19:28:52 EDT 2009
On Wed, Sep 2, 2009 at 6:34 PM, <bruce.labitt at autoliv.com> wrote:
> kent3737 at gmail.com wrote on 09/02/2009 05:39:06 PM:
>> BTW
>> class myVars(object):
>> is preferred these days.
> On your BTW, do I need to change anything besides
>
> class MyVars(object):
No, that's it. It makes MyVars a "new-style" class which is considered
good practice though in truth it is a fine point and I don't think it
matters much in most cases.
Kent
More information about the Python-talk
mailing list