Mike Klaas wrote: > Another thing to consider is that the def() pattern is only possible > when the bound variable has no dots. A common pattern for me is to > replace an instances method with a lambda to add monitoring hooks or > disable certain functionality: > > inst.get_foo = lambda: FakeFoo() Good point. That one may write eg for inst.bar in range(10) : do_something() makes one wonder whether def inst.bar(...) : ... or even def fn[k](...) : ... should be similarly permitted. Has this ever been discussed ? Regards, BB
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4