Lines Matching refs:a_tuple
1340 Why does a_tuple[i] += ['item'] raise an exception when the addition works?
1353 >>> a_tuple = (1, 2)
1354 >>> a_tuple[0] += 1
1360 object ``a_tuple[0]`` points to (``1``), producing the result object, ``2``,
1368 >>> result = a_tuple[0] + 1
1369 >>> a_tuple[0] = result
1379 >>> a_tuple = (['foo'], 'bar')
1380 >>> a_tuple[0] += ['item']
1388 >>> a_tuple[0]
1415 >>> result = a_tuple[0].__iadd__(['item'])
1416 >>> a_tuple[0] = result
1422 ``result`` points to the same object that ``a_tuple[0]`` already points to,