Structures
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Mon Nov 3 07:20:17 EST 2008
Paulo J. Matos:
> Since Python focus
> on having one way to do it and structures are something like classes
> with only public methods, if I want structures that's what I should use.
> Is that right?
Yes, it is. On the other hand in Python 2.6 there's something that
helps you build one of such classes in a standard and handy way: see
"namedtuple" in the standard "collections" module.
Bye,
bearophile
More information about the Python-list
mailing list