News for hackers. Stuff that matters.
Re:Metaclasses in Python by grot on Thursday December 15, 2011 @01:16PM (#3357238)
you may not have seen it, but it does work:

n [8]: class Foo(object): ...: pass ...:

In [9]: blah = Foo()

In [10]: blah.asdf = lambda x: x

In [11]: blah.asdf(3) Out[11]: 3

In [12]: blah.asdf(5) Out[12]: 5

There are no comments on this comment yet.