MeadSteve@reddthat.com to Python@programming.devEnglish · 10 months 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 · 10 months agomessage-square8fedilinkfile-text
minus-squareqwertyasdef@programming.devlinkfedilinkarrow-up8·10 months 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.