diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-30 08:30:39 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-30 08:30:39 (GMT) |
commit | 8b2e8b6cce4960e945c7c635c350c8e44a0f9022 (patch) | |
tree | 1e5bec3737bb877e4c0d16ac32f60450f957d7dd /Python | |
parent | 7e810a6e3d51e512968f6ac276e555ea99d151d8 (diff) | |
download | cpython-8b2e8b6cce4960e945c7c635c350c8e44a0f9022.zip cpython-8b2e8b6cce4960e945c7c635c350c8e44a0f9022.tar.gz cpython-8b2e8b6cce4960e945c7c635c350c8e44a0f9022.tar.bz2 |
Specify default values of semantic booleans in Argument Clinic generated signatures as booleans.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 8 | ||||
-rw-r--r-- | Python/clinic/bltinmodule.c.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index b05a70f..2f22209 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -637,7 +637,7 @@ compile as builtin_compile filename: object(converter="PyUnicode_FSDecoder") mode: str flags: int = 0 - dont_inherit: int = 0 + dont_inherit: int(c_default="0") = False optimize: int = -1 Compile source into a code object that can be executed by exec() or eval(). @@ -648,9 +648,9 @@ The mode must be 'exec' to compile a module, 'single' to compile a single (interactive) statement, or 'eval' to compile an expression. The flags argument, if present, controls which future statements influence the compilation of the code. -The dont_inherit argument, if non-zero, stops the compilation inheriting +The dont_inherit argument, if true, stops the compilation inheriting the effects of any future statements in effect in the code calling -compile; if absent or zero these statements do influence the compilation, +compile; if absent or false these statements do influence the compilation, in addition to any features explicitly specified. [clinic start generated code]*/ @@ -658,7 +658,7 @@ static PyObject * builtin_compile_impl(PyModuleDef *module, PyObject *source, PyObject *filename, const char *mode, int flags, int dont_inherit, int optimize) -/*[clinic end generated code: output=31881762c1bb90c4 input=7faa105f669fefcf]*/ +/*[clinic end generated code: output=31881762c1bb90c4 input=9d53e8cfb3c86414]*/ { Py_buffer view = {NULL, NULL}; const char *str; diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index bbca534..7369148 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -129,8 +129,8 @@ exit: } PyDoc_STRVAR(builtin_compile__doc__, -"compile($module, /, source, filename, mode, flags=0, dont_inherit=0,\n" -" optimize=-1)\n" +"compile($module, /, source, filename, mode, flags=0,\n" +" dont_inherit=False, optimize=-1)\n" "--\n" "\n" "Compile source into a code object that can be executed by exec() or eval().\n" @@ -141,9 +141,9 @@ PyDoc_STRVAR(builtin_compile__doc__, "single (interactive) statement, or \'eval\' to compile an expression.\n" "The flags argument, if present, controls which future statements influence\n" "the compilation of the code.\n" -"The dont_inherit argument, if non-zero, stops the compilation inheriting\n" +"The dont_inherit argument, if true, stops the compilation inheriting\n" "the effects of any future statements in effect in the code calling\n" -"compile; if absent or zero these statements do influence the compilation,\n" +"compile; if absent or false these statements do influence the compilation,\n" "in addition to any features explicitly specified."); #define BUILTIN_COMPILE_METHODDEF \ @@ -660,4 +660,4 @@ builtin_issubclass(PyModuleDef *module, PyObject *args) exit: return return_value; } -/*[clinic end generated code: output=9b34d1ca57effad8 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bec3399c0aee98d7 input=a9049054013a1b77]*/ |