Y
Hacker News
new
|
ask
|
show
|
jobs
by
danjaouen
4862 days ago
Technically, you can open up Python classes:
class Test(object): pass t = Test() def test(self): print('ehlo') Test.test = test t.test()
This is rarely done in practice, however (at least, as far as I can tell)