> > Greg Wilson wrote: > > 3. "Where is '+=' ?" and "Why can't I redefine assignment?" > Ka-Ping Yee: > += would be nice; not a really big deal to me. > > Redefining assignment would get way too confusing, i think. > __setitem__ has always been good enough for me. It'll make a big difference to NumPy (avoiding temporaries, etc.). Also hard to explain why you can redefine assignment to an array element, but not to a scalar variable. Thanks, Greg
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