indexed property? Can it be done?

Chris Rebert clp2 at rebertia.com
Mon May 7 23:33:49 EDT 2012


On Mon, May 7, 2012 at 8:15 PM, Charles Hixson
<charleshixsn at earthlink.net> wrote:
> class Node:
>>    def    __init__(self, nodeId, key, value, downRight, downLeft, parent):
>        dirty    =    True
>        dlu    =    utcnow()
>        self.node    =    [nodeId, downLeft, [key], [value], [downRight],
> parent, dirty, dlu]

Why are you using a single opaque list instead of separate, meaningful
attributes for each datum?
Cheers,
Chris


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /