Introduction of `tuple.item()` / `list.item()` / `Sequence.item()` to convert sequence to scalar

Thanks, these are some useful suggestions! I don’t like the assert construct very much, but more_itertools.one could help there, if a concise solution is needed.

1 Like