[Python-Dev] [PEP] += on return of function call result (original) (raw)
Luke Kenneth Casson Leighton lkcl@samba-tng.org
Mon, 19 May 2003 16:31:20 +0000
- Previous message: [Python-Dev] [PEP] += on return of function call result
- Next message: [Python-Dev] Re: [PEP] += on return of function call result
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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!
- Previous message: [Python-Dev] [PEP] += on return of function call result
- Next message: [Python-Dev] Re: [PEP] += on return of function call result
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]