| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b8a2f51 commit 1a2b24f
71 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,6 +80,9 @@ C API | |||
| 80 | 80 | Tools/Demos | |
| 81 | 81 | ----------- | |
| 82 | 82 | ||
| 83 | + - Issue #27332: Fixed the type of the first argument of module-level functions | ||
| 84 | + generated by Argument Clinic. Patch by Petr Viktorin. | ||
| 85 | + | ||
| 83 | 86 | - Issue #27418: Fixed Tools/importbench/importbench.py. | |
| 84 | 87 | ||
| 85 | 88 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,8 +31,8 @@ results for a given *word*. | |||
| 31 | 31 | [clinic start generated code]*/ | |
| 32 | 32 | ||
| 33 | 33 | static PyObject * | |
| 34 | - crypt_crypt_impl(PyModuleDef *module, const char *word, const char *salt) | ||
| 35 | - /*[clinic end generated code: output=995ad1e854d83069 input=0e8edec9c364352b]*/ | ||
| 34 | + crypt_crypt_impl(PyObject *module, const char *word, const char *salt) | ||
| 35 | + /*[clinic end generated code: output=0512284a03d2803c input=0e8edec9c364352b]*/ | ||
| 36 | 36 | { | |
| 37 | 37 | /* On some platforms (AtheOS) crypt returns NULL for an invalid | |
| 38 | 38 | salt. Return None in that case. XXX Maybe raise an exception? */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -430,9 +430,9 @@ Return a database object. | |||
| 430 | 430 | [clinic start generated code]*/ | |
| 431 | 431 | ||
| 432 | 432 | static PyObject * | |
| 433 | - dbmopen_impl(PyModuleDef *module, const char *filename, const char *flags, | ||
| 433 | + dbmopen_impl(PyObject *module, const char *filename, const char *flags, | ||
| 434 | 434 | int mode) | |
| 435 | - /*[clinic end generated code: output=e8d4b36f25c733fd input=226334bade5764e6]*/ | ||
| 435 | + /*[clinic end generated code: output=5fade8cf16e0755f input=226334bade5764e6]*/ | ||
| 436 | 436 | { | |
| 437 | 437 | int iflags; | |
| 438 | 438 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -562,9 +562,8 @@ when the database has to be created. It defaults to octal 0o666. | |||
| 562 | 562 | [clinic start generated code]*/ | |
| 563 | 563 | ||
| 564 | 564 | static PyObject * | |
| 565 | - dbmopen_impl(PyModuleDef *module, const char *name, const char *flags, | ||
| 566 | - int mode) | ||
| 567 | - /*[clinic end generated code: output=365b31415c03ccd4 input=55563cd60e51984a]*/ | ||
| 565 | + dbmopen_impl(PyObject *module, const char *name, const char *flags, int mode) | ||
| 566 | + /*[clinic end generated code: output=31aa1bafdf5da688 input=55563cd60e51984a]*/ | ||
| 568 | 567 | { | |
| 569 | 568 | int iflags; | |
| 570 | 569 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -227,10 +227,10 @@ opened in a binary mode. | |||
| 227 | 227 | [clinic start generated code]*/ | |
| 228 | 228 | ||
| 229 | 229 | static PyObject * | |
| 230 | - _io_open_impl(PyModuleDef *module, PyObject *file, const char *mode, | ||
| 230 | + _io_open_impl(PyObject *module, PyObject *file, const char *mode, | ||
| 231 | 231 | int buffering, const char *encoding, const char *errors, | |
| 232 | 232 | const char *newline, int closefd, PyObject *opener) | |
| 233 | - /*[clinic end generated code: output=7615d0d746eb14d2 input=f4e1ca75223987bc]*/ | ||
| 233 | + /*[clinic end generated code: output=aefafc4ce2b46dc0 input=f4e1ca75223987bc]*/ | ||
| 234 | 234 | { | |
| 235 | 235 | unsigned i; | |
| 236 | 236 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -130,12 +130,12 @@ PyDoc_STRVAR(_io_open__doc__, | |||
| 130 | 130 | {"open", (PyCFunction)_io_open, METH_VARARGS|METH_KEYWORDS, _io_open__doc__}, | |
| 131 | 131 | ||
| 132 | 132 | static PyObject * | |
| 133 | - _io_open_impl(PyModuleDef *module, PyObject *file, const char *mode, | ||
| 133 | + _io_open_impl(PyObject *module, PyObject *file, const char *mode, | ||
| 134 | 134 | int buffering, const char *encoding, const char *errors, | |
| 135 | 135 | const char *newline, int closefd, PyObject *opener); | |
| 136 | 136 | ||
| 137 | 137 | static PyObject * | |
| 138 | - _io_open(PyModuleDef *module, PyObject *args, PyObject *kwargs) | ||
| 138 | + _io_open(PyObject *module, PyObject *args, PyObject *kwargs) | ||
| 139 | 139 | { | |
| 140 | 140 | PyObject *return_value = NULL; | |
| 141 | 141 | static char *_keywords[] = {"file", "mode", "buffering", "encoding", "errors", "newline", "closefd", "opener", NULL}; | |
@@ -156,4 +156,4 @@ _io_open(PyModuleDef *module, PyObject *args, PyObject *kwargs) | |||
| 156 | 156 | exit: | |
| 157 | 157 | return return_value; | |
| 158 | 158 | } | |
| 159 | - /*[clinic end generated code: output=97cdc09bf68a8064 input=a9049054013a1b77]*/ | ||
| 159 | + /*[clinic end generated code: output=bc2c003cb7daeafe input=a9049054013a1b77]*/ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1342,8 +1342,8 @@ Always returns True for CHECK_NONE and CHECK_CRC32. | |||
| 1342 | 1342 | [clinic start generated code]*/ | |
| 1343 | 1343 | ||
| 1344 | 1344 | static PyObject * | |
| 1345 | - _lzma_is_check_supported_impl(PyModuleDef *module, int check_id) | ||
| 1346 | - /*[clinic end generated code: output=bb828e90e00ad96e input=5518297b97b2318f]*/ | ||
| 1345 | + _lzma_is_check_supported_impl(PyObject *module, int check_id) | ||
| 1346 | + /*[clinic end generated code: output=e4f14ba3ce2ad0a5 input=5518297b97b2318f]*/ | ||
| 1347 | 1347 | { | |
| 1348 | 1348 | return PyBool_FromLong(lzma_check_is_supported(check_id)); | |
| 1349 | 1349 | } | |
@@ -1360,8 +1360,8 @@ The result does not include the filter ID itself, only the options. | |||
| 1360 | 1360 | [clinic start generated code]*/ | |
| 1361 | 1361 | ||
| 1362 | 1362 | static PyObject * | |
| 1363 | - _lzma__encode_filter_properties_impl(PyModuleDef *module, lzma_filter filter) | ||
| 1364 | - /*[clinic end generated code: output=b5fe690acd6b61d1 input=d4c64f1b557c77d4]*/ | ||
| 1363 | + _lzma__encode_filter_properties_impl(PyObject *module, lzma_filter filter) | ||
| 1364 | + /*[clinic end generated code: output=5c93c8e14e7be5a8 input=d4c64f1b557c77d4]*/ | ||
| 1365 | 1365 | { | |
| 1366 | 1366 | lzma_ret lzret; | |
| 1367 | 1367 | uint32_t encoded_size; | |
@@ -1400,9 +1400,9 @@ The result does not include the filter ID itself, only the options. | |||
| 1400 | 1400 | [clinic start generated code]*/ | |
| 1401 | 1401 | ||
| 1402 | 1402 | static PyObject * | |
| 1403 | - _lzma__decode_filter_properties_impl(PyModuleDef *module, lzma_vli filter_id, | ||
| 1403 | + _lzma__decode_filter_properties_impl(PyObject *module, lzma_vli filter_id, | ||
| 1404 | 1404 | Py_buffer *encoded_props) | |
| 1405 | - /*[clinic end generated code: output=af248f570746668b input=246410800782160c]*/ | ||
| 1405 | + /*[clinic end generated code: output=714fd2ef565d5c60 input=246410800782160c]*/ | ||
| 1406 | 1406 | { | |
| 1407 | 1407 | lzma_filter filter; | |
| 1408 | 1408 | lzma_ret lzret; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,8 +20,8 @@ Compute the stack effect of the opcode. | |||
| 20 | 20 | [clinic start generated code]*/ | |
| 21 | 21 | ||
| 22 | 22 | static int | |
| 23 | - _opcode_stack_effect_impl(PyModuleDef *module, int opcode, PyObject *oparg) | ||
| 24 | - /*[clinic end generated code: output=1fcafd5596c6b050 input=2d0a9ee53c0418f5]*/ | ||
| 23 | + _opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg) | ||
| 24 | + /*[clinic end generated code: output=ad39467fa3ad22ce input=2d0a9ee53c0418f5]*/ | ||
| 25 | 25 | { | |
| 26 | 26 | int effect; | |
| 27 | 27 | int oparg_int = 0; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6961,9 +6961,9 @@ to map the new Python 3 names to the old module names used in Python | |||
| 6961 | 6961 | [clinic start generated code]*/ | |
| 6962 | 6962 | ||
| 6963 | 6963 | static PyObject * | |
| 6964 | - _pickle_dump_impl(PyModuleDef *module, PyObject *obj, PyObject *file, | ||
| 6964 | + _pickle_dump_impl(PyObject *module, PyObject *obj, PyObject *file, | ||
| 6965 | 6965 | PyObject *protocol, int fix_imports) | |
| 6966 | - /*[clinic end generated code: output=0de7dff89c406816 input=830f8a64cef6f042]*/ | ||
| 6966 | + /*[clinic end generated code: output=a4774d5fde7d34de input=830f8a64cef6f042]*/ | ||
| 6967 | 6967 | { | |
| 6968 | 6968 | PicklerObject *pickler = _Pickler_New(); | |
| 6969 | 6969 | ||
@@ -7015,9 +7015,9 @@ Python 2, so that the pickle data stream is readable with Python 2. | |||
| 7015 | 7015 | [clinic start generated code]*/ | |
| 7016 | 7016 | ||
| 7017 | 7017 | static PyObject * | |
| 7018 | - _pickle_dumps_impl(PyModuleDef *module, PyObject *obj, PyObject *protocol, | ||
| 7018 | + _pickle_dumps_impl(PyObject *module, PyObject *obj, PyObject *protocol, | ||
| 7019 | 7019 | int fix_imports) | |
| 7020 | - /*[clinic end generated code: output=daa380db56fe07b9 input=293dbeda181580b7]*/ | ||
| 7020 | + /*[clinic end generated code: output=d75d5cda456fd261 input=293dbeda181580b7]*/ | ||
| 7021 | 7021 | { | |
| 7022 | 7022 | PyObject *result; | |
| 7023 | 7023 | PicklerObject *pickler = _Pickler_New(); | |
@@ -7076,9 +7076,9 @@ string instances as bytes objects. | |||
| 7076 | 7076 | [clinic start generated code]*/ | |
| 7077 | 7077 | ||
| 7078 | 7078 | static PyObject * | |
| 7079 | - _pickle_load_impl(PyModuleDef *module, PyObject *file, int fix_imports, | ||
| 7079 | + _pickle_load_impl(PyObject *module, PyObject *file, int fix_imports, | ||
| 7080 | 7080 | const char *encoding, const char *errors) | |
| 7081 | - /*[clinic end generated code: output=798f1c57cb2b4eb1 input=01b44dd3fc07afa7]*/ | ||
| 7081 | + /*[clinic end generated code: output=69e298160285199e input=01b44dd3fc07afa7]*/ | ||
| 7082 | 7082 | { | |
| 7083 | 7083 | PyObject *result; | |
| 7084 | 7084 | UnpicklerObject *unpickler = _Unpickler_New(); | |
@@ -7130,9 +7130,9 @@ string instances as bytes objects. | |||
| 7130 | 7130 | [clinic start generated code]*/ | |
| 7131 | 7131 | ||
| 7132 | 7132 | static PyObject * | |
| 7133 | - _pickle_loads_impl(PyModuleDef *module, PyObject *data, int fix_imports, | ||
| 7133 | + _pickle_loads_impl(PyObject *module, PyObject *data, int fix_imports, | ||
| 7134 | 7134 | const char *encoding, const char *errors) | |
| 7135 | - /*[clinic end generated code: output=61e9cdb01e36a736 input=70605948a719feb9]*/ | ||
| 7135 | + /*[clinic end generated code: output=1e7cb2343f2c440f input=70605948a719feb9]*/ | ||
| 7136 | 7136 | { | |
| 7137 | 7137 | PyObject *result; | |
| 7138 | 7138 | UnpicklerObject *unpickler = _Unpickler_New(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments