On Sat, Mar 20, 2021 at 8:03 PM Guido van Rossum wrote:
> The operator module is also C.
>
(In my 2018 PR, I was able to add the Python implementations of `aiter` and
`anext` to Lib/operator.py, right above where it does "from _operator
import *" toward the bottom of the file. I interpreted this
s, and
>>> later promote them to built-ins if people actually find them widely useful.
>>>
>>> On the other hand, adding something to built-ins that turns out to be
>>> rarely useful adds unnecessary noise and is much harder to fix later
>>> without caus
ed to be builtins?
>
> They seem too specialized to be widely useful; I've personally never needed
> them in any async code I've written. It would make more sense to me to put
> them in a module like operators.
>
>
> (sorry for the weird formatting, posting from an
Dear python-dev,
New here (but not to Python). 👋 Brett Cannon recommended I start a thread here
(thanks, Brett!).
In December, two colleagues and I submitted
https://github.com/python/cpython/pull/23847, "Add aiter and anext to
builtins", which would fix https://bugs.python.org/issue31861.
Wo