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-April/034341.html below:

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

[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
Wed, 2 Apr 2003 15:12:33 +0000
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"



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