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)
| 417 | |
| 418 | |
| 419 | def seq_concat_item(seq, item): |
| 420 | """Return copy of sequence seq with item added. |
| 421 | |
| 422 | Returns: |
| 423 | Sequence: if seq is a tuple, the result will be a tuple, |
| 424 | otherwise it depends on the implementation of ``__add__``. |
| 425 | """ |
| 426 | return seq + (item,) if isinstance(seq, tuple) else seq + [item] |
| 427 | |
| 428 | |
| 429 | def seq_concat_seq(a, b): |
no outgoing calls