C-style static variables in Python?

Patrick Maupin pmaupin at gmail.com
Fri Apr 2 22:42:53 CEST 2010


On Apr 2, 3:33 pm, Ethan Furman <et... at stoneleaf.us> wrote:
> My main point, though, was using __call__, and not some weird _ method.  ;)

Yes, __call__ is good.  In general, not naming things that don't need
to be named is good (but if you have too many of them to keep track
of, then, obviously, they need to be named, hence named tuples).

But I didn't need to address that, since you already did :-)



More information about the Python-list mailing list