pyjaco
pyjaco copied to clipboard
Assign variables/methods after class creation impossible
This is not possible yet. Possible refactoring of the class system is needed
Foo(object):
var = "Foo"
def bar():
return "Bar"
f = Foo()
f.bar = lambda self: self.var + "Bar"
print f.bar()
Hm, I'm positive I've tried that. It must've been broken at some point. Thanks for the report, I'll check it :-)