🐍 Idioms¢

The initial list of this idioms have been taken form Raymond Hettinger’s Talk - β€œTransform Code into Beautiful, Idiomatic Python” (Transform Python Slides). The list then been updated and extended, we will do our best to give credit for each idom to the source where we picked it up from, by annotating it the following way:

πŸ’‘ learnt from: <Source>, [Reference]

or

πŸ’‘ learnt from:

  • Source: <Source>

  • Reference: [Reference]

β€”

<Source>: being an author name, book name, etc.

[Reference]: Optional, a concrete reference to the idiom or the source where it stems from.

That being said, one should be aware that small patterns and idioms often times get β€œinvented” independently by multiple sources. It is not always clear who was the original source of a specific pattern or idiom. Therefore our marker intentionally was named learnt from because we want communicate, it is the source where we picked it up from, rather than the β€œoriginal” source.