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/2003-May/035754.html below:

[Python-Dev] [PEP] += on return of function call result

[Python-Dev] [PEP] += on return of function call resultLuke Kenneth Casson Leighton lkcl@samba-tng.org
Mon, 19 May 2003 16:31:20 +0000
On Mon, May 19, 2003 at 06:07:08PM +0200, Samuele Pedroni wrote:

> >>> def refiadd(r,v): # r+=v, r is a reference, not a an lvalue
> ...   if hasattr(r.__class__,'__iadd__'):
> ...     r.__class__.__iadd__(r,v)
> ...   else:
> ...     raise ValueError,"non-sense"
> ...

you're a star - thank you!




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