Why are itertools recipes not exported?

Why are they documentation recipes and not included in the itertools library?

There are many other recipes * in python docs *, so there seems to be a rich history of creating python recipes. However, in my opinion, most of the others in the documents are toy examples or very specific examples and, therefore, are not copied or glued at all. However, I often take itertools recipes verbatim!

How is it decided whether the recipe should become part of stdlib?
What role did recipes play in python development?
(Did they control the stdlib direction?)

* Many are useful as links, for example. to generate passwords , but most of them are not copied verbatim.

Note. This question is not about β€œhow do I get these functions”, there are several pypi projects that include all of them. This question has more to do with the history of recipes and how they were part of the development of python.


This question was triggered by this tweet :

I love how itertools has all these great features, but you cannot import them https://docs.python.org/3/library/itertools.html#itertools-recipes

+5
source share

Source: https://habr.com/ru/post/1273452/


All Articles