News for hackers. Stuff that matters.
Re:Python's Mutable Default Problem by viraptor on Sunday February 20, 2011 @12:50PM (#2242458)
Not sure if that's a "problem" if the only other way to implement function-static variables would be to add a variable visible for the whole module, or tricks with decorators...

    @statics(blah=[])
    def foo(normal_args, **kwargs):
    # or
    def foo(normal_args, blah):
It messes up the idea of looking at the definition to find the function signature.

There are no comments on this comment yet.