Static variables

Paul Rubin http
Thu Jan 25 02:09:50 CET 2007


bearophileHUGS at lycos.com writes:
> An interesting solution, I have never created such grouped closures. I
> don't know if this solution is better than a class with some class
> attributes plus some class methods...

It's a Scheme idiom but I think once the object gets this complicated,
it's probably more Pythonic to use a class.



More information about the Python-list mailing list