[Gordon McMillan] > ... > Or are you saying that if functions have attributes, people will > all of a sudden expect that function locals will have initialized > and maintained state? I expect that they'll expect exactly what happens in JavaScript, which supports function attributes too, and where it's often used as a nicer-than-globals way to get the effect of C-like mutable statics (conceptually) local to the function. BTW, viewing this all in OO terms would make compelling sense only if Guido viewed everything in OO terms -- but he doesn't. To the extent that people must <wink>, Python doesn't stop you from adding arbitrary unique attrs to class instances today either. consistent-in-inconsistency-ly y'rs - tim
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