MeadSteve@reddthat.com to Python@programming.devEnglish · 1 year agoTyped Python: Choose Sequence over Listblog.meadsteve.devexternal-linkmessage-square8fedilinkarrow-up122arrow-down10file-text
arrow-up122arrow-down1external-linkTyped Python: Choose Sequence over Listblog.meadsteve.devMeadSteve@reddthat.com to Python@programming.devEnglish · 1 year agomessage-square8fedilinkfile-text
minus-squareqwertyasdef@programming.devlinkfedilinkarrow-up8·1 year agoIf you don’t need to reuse the collection or access its items out of order, you can also use Iterable which accepts even more inputs like generators.
If you don’t need to reuse the collection or access its items out of order, you can also use
Iterable
which accepts even more inputs like generators.