Lines Matching refs:a_tuple
1259 Why does a_tuple[i] += ['item'] raise an exception when the addition works?
1272 >>> a_tuple = (1, 2)
1273 >>> a_tuple[0] += 1
1279 object ``a_tuple[0]`` points to (``1``), producing the result object, ``2``,
1287 >>> result = a_tuple[0] + 1
1288 >>> a_tuple[0] = result
1298 >>> a_tuple = (['foo'], 'bar')
1299 >>> a_tuple[0] += ['item']
1307 >>> a_tuple[0]
1334 >>> result = a_tuple[0].__iadd__(['item'])
1335 >>> a_tuple[0] = result
1341 ``result`` points to the same object that ``a_tuple[0]`` already points to,