Return copy of sequence seq with item added. Returns: Sequence: if seq is a tuple, the result will be a tuple, otherwise it depends on the implementation of ``__add__``.
(seq, item)
| 474 | |
| 475 | |
| 476 | def seq_concat_item(seq, item): |
| 477 | """Return copy of sequence seq with item added. |
| 478 | |
| 479 | Returns: |
| 480 | Sequence: if seq is a tuple, the result will be a tuple, |
| 481 | otherwise it depends on the implementation of ``__add__``. |
| 482 | """ |
| 483 | return seq + (item,) if isinstance(seq, tuple) else seq + [item] |
| 484 | |
| 485 | |
| 486 | def seq_concat_seq(a, b): |
no outgoing calls