[Python-Dev] PEP 559 - built-in noop()

Antoine Pitrou solipsis at pitrou.net
Sat Sep 9 16:35:34 EDT 2017

On Sat, 9 Sep 2017 11:46:30 -0700
Barry Warsaw <barry at python.org> wrote:
> Rationale
> =========
> It is trivial to implement a no-op function in Python.  It's so easy in fact
> that many people do it many times over and over again.  It would be useful in
> many cases to have a common built-in function that does nothing.

You forgot to mention the advantage of battle-testing the noop()
function on our buildbot fleet!  You don't want to compromise your
application code with a weak noop() function.

> The C built-in implementation is available as a pull request.

Does it guarantee reentrancy?



More information about the Python-Dev mailing list