Skip to content
Iddan Ahahronson edited this page Nov 7, 2017 · 2 revisions

The package functions prefer to return types by this order:

  • iterable
  • set
  • tuple
  • dict
  • function

They will never return:

  • list
  • plain object

Why?

  • Performance
  • Immutability
  • The Pythonic Way
  • Common sense
Clone this wiki locally