Static variables

Paul Rubin http
Wed Jan 24 20:09:50 EST 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