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/2012-March/117258.html below:

[Python-Dev] odd "tuple does not support assignment" confusion...

[Python-Dev] odd "tuple does not support assignment" confusion... [Python-Dev] odd "tuple does not support assignment" confusion...Terry Reedy tjreedy at udel.edu
Sat Mar 3 00:57:35 CET 2012
On 3/2/2012 6:06 PM, Alex A. Naanou wrote:

> Just stumbled on a fun little thing:

The place for 'fun little things' is python-list, mirrored as 
gmane.comp.python.general.

> We create a simple structure...
>    l = ([],)
> Now modify the list, and...
>    l[0] += [1]
> ...we fail:

This has been discussed several times on python-list.
Searching group gmane.comp.python.general for 'augmented assignment 
tuple' at search.gmane.com returns about 50 matches.

-- 
Terry Jan Reedy

More information about the Python-Dev mailing list

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