A blog post on choosing more specific types rather than general ones like list and dict.

  • @qwertyasdef@programming.dev
    link
    fedilink
    82 years ago

    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.