pyjaco icon indicating copy to clipboard operation
pyjaco copied to clipboard

Assign variables/methods after class creation impossible

Open dxlbnl opened this issue 12 years ago • 1 comments

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()

dxlbnl avatar Apr 20 '12 17:04 dxlbnl

Hm, I'm positive I've tried that. It must've been broken at some point. Thanks for the report, I'll check it :-)

chrivers avatar Jul 02 '12 14:07 chrivers