A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-February/002032.html below:

[Python-Dev] re: LANL syntax (assignment)

[Python-Dev] re: LANL syntax (assignment) [Python-Dev] re: LANL syntax (assignment)gvwilson@nevex.com gvwilson@nevex.com
Thu, 3 Feb 2000 19:02:46 -0500 (EST)
> > 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