2 ms·
Has anyone ever experienced a time where assigning member variables on a function made sense? The thing I love about python is the freedom to do whatever I wan
by Waterluvian 8y ago
Has anyone ever experienced a time where assigning member variables on a function made sense?
The thing I love about python is the freedom to do whatever I want and the responsibility to almost never do it. I crave examples of exceptional cases.
- guitarbill 8y agoThe most common cases are decorator functions, e.g. one that counts the number of invocations: https://stackoverflow.com/questions/44968004/python-decorators-count-function-call https://stackoverflow.com/questions/44968004/python-decorato...