bearophileHUGS at bearophileHUGS at
Mon Nov 3 13:20:17 CET 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.


More information about the Python-list mailing list