[Python-Dev] [PEP] += on return of function call result (original) (raw)
Luke Kenneth Casson Leighton lkcl@samba-tng.org
Wed, 2 Apr 2003 15:12:33 +0000
- Previous message: [Python-Dev] [PEP] += on return of function call result
- Next message: [Python-Dev] [PEP] += on return of function call result
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Apr 02, 2003 at 09:54:35AM -0500, Andrew Koenig wrote:
Why can't you do this?
for t in range(5): for r in range(10): foo = log.setdefault(r,'') foo += "test %d\n" % t
because i am thick?
... now why didn't that occur to me :)
thanks andrew,
l.
p.s. so it's on the "would be nice to have"
- Previous message: [Python-Dev] [PEP] += on return of function call result
- Next message: [Python-Dev] [PEP] += on return of function call result
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]