Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign variables/methods after class creation impossible #68

Open
dxlbnl opened this issue Apr 20, 2012 · 1 comment
Open

Assign variables/methods after class creation impossible #68

dxlbnl opened this issue Apr 20, 2012 · 1 comment

Comments

@dxlbnl
Copy link

dxlbnl commented Apr 20, 2012

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()
@chrivers
Copy link
Owner

chrivers commented Jul 2, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants