[Python-checkins] peps: PEP 510: add missing parameters to check() to support keywords
victor.stinner
python-checkins at python.org
Sun Jan 10 21:02:43 EST 2016
https://hg.python.org/peps/rev/3b9eb6edb7c3
changeset: 6158:3b9eb6edb7c3
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Jan 11 03:02:32 2016 +0100
summary:
PEP 510: add missing parameters to check() to support keywords
files:
pep-0510.txt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pep-0510.txt b/pep-0510.txt
--- a/pep-0510.txt
+++ b/pep-0510.txt
@@ -235,11 +235,11 @@
guards. It requires to implement a ``check()`` function, with an
optional ``first_check()`` function. API:
- * ``int check(PyObject *guard, PyObject **stack)``: return 1 on
- success, 0 if the guard failed temporarely, -1 if the guard will
- always fail
* ``int first_check(PyObject *guard, PyObject *func)``: return 0 on
success, -1 if the guard will always fail
+ * ``int check(PyObject *guard, PyObject **stack, int na, int nk)``:
+ return 1 on success, 0 if the guard failed temporarely, -1 if the
+ guard will always fail
Microbenchmark on ``python3.6 -m timeit -s 'def f(): pass' 'f()'`` (best
of 3 runs):
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list