• 5ffd57393a85553ab55b
• 5cd28e2a812e5c65c9f7320e0726da18
• b6a6676a84b51c8200d0673a5b4a87c5
The quotes on this page come from this deleted question on Stackoverflow:
The quotes on this page come from this deleted question on Stackoverflow:
| # based on: http://stackoverflow.com/questions/1015307/python-bind-an-unbound-method#comment8431145_1015405 | |
| def bind(instance, func, as_name): | |
| """ Turn a function to a bound method on an instance | |
| .. doctest:: | |
| >>> class Foo(object): | |
| ... def __init__(self, x, y): | |
| ... self.x = x | |
| ... self.y = y |