Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-1635741 port zlib module to multi-phase init (GH-21995) | Mohamed Koubaa | 2020-09-07 | 1 | -95/+141 |
| | | | Port the zlib extension module to multi-phase initialization (PEP 489). | ||||
* | bpo-40792: Make the result of PyNumber_Index() always having exact type int. ↵ | Serhiy Storchaka | 2020-05-28 | 1 | -4/+4 |
| | | | | | | | | | | | | (GH-20443) Previously, the result could have been an instance of a subclass of int. Also revert bpo-26202 and make attributes start, stop and step of the range object having exact type int. Add private function _PyNumber_Index() which preserves the old behavior of PyNumber_Index() for performance to use it in the conversion functions like PyLong_AsLong(). | ||||
* | bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) | Serhiy Storchaka | 2020-05-26 | 1 | -62/+34 |
| | | | | Only __index__ should be used to make integer conversions lossless. | ||||
* | bpo-37034: Display argument name on errors with keyword arguments with ↵ | Rémi Lapeyre | 2019-08-29 | 1 | -8/+8 |
| | | | | Argument Clinic. (GH-13593) | ||||
* | bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵ | Serhiy Storchaka | 2019-03-14 | 1 | -16/+188 |
| | | | | (GH-12058) | ||||
* | bpo-35582: Argument Clinic: inline parsing code for positional parameters. ↵ | Serhiy Storchaka | 2019-01-11 | 1 | -10/+66 |
| | | | | (GH-11313) | ||||
* | bpo-23867: Argument Clinic: inline parsing code for a single positional ↵ | Serhiy Storchaka | 2018-12-25 | 1 | -2/+6 |
| | | | | parameter. (GH-9689) | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. ↵ | Serhiy Storchaka | 2018-11-27 | 1 | -10/+10 |
| | | | | | | | | (GH-6748) Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS in Argument Clinic generated code. | ||||
* | bpo-25007: Add copy protocol support to zlib compressors and decompressors ↵ | Zackery Spytz | 2018-06-27 | 1 | -1/+83 |
| | | | | (GH-7940) | ||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -10/+10 |
| | | | | arguments. (#4746) | ||||
* | bpo-31926: fix missing *_METHODDEF statements by argument clinic (#4230) | Tal Einat | 2017-11-03 | 1 | -1/+5 |
| | | | | | | | | | When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF #define statement is generated only for one of them. This fixes the bug by using the full name of the function to avoid duplicates rather than just the name. | ||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 1 | -26/+10 |
| | | | | | the bare METH_FASTCALL be used for functions with positional-only parameters. | ||||
* | bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051) | Sylvain | 2017-06-10 | 1 | -13/+13 |
| | | | | | | | | The function '_PyArg_ParseStack()' and '_PyArg_UnpackStack' were failing (with error "XXX() takes Y argument (Z given)") before the function '_PyArg_NoStackKeywords()' was called. Thus, the latter did not raise its more meaningful error : "XXX() takes no keyword arguments". | ||||
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -13/+29 |
| | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using only positional arguments. | ||||
* | Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords | Victor Stinner | 2017-01-17 | 1 | -5/+5 |
| | | | | Issue #29286. | ||||
* | Issue #27810: Rerun Argument Clinic on all modules | Victor Stinner | 2016-09-10 | 1 | -16/+16 |
| | |||||
* | Issue #16764: Support keyword arguments to zlib.decompress(). Patch by | Serhiy Storchaka | 2016-08-15 | 1 | -9/+13 |
| | | | | Xiang Zhang. | ||||
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functions | Serhiy Storchaka | 2016-08-14 | 1 | -7/+10 |
| | | | | implemented with using Argument Clinic. | ||||
* | Issue #27130: Merge zlib 64-bit fixes from 3.5 | Martin Panter | 2016-07-23 | 1 | -10/+10 |
|\ | |||||
| * | Issue #27130: Fix handling of buffers exceeding UINT_MAX in “zlib” module | Martin Panter | 2016-07-23 | 1 | -10/+10 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -13/+13 |
|\ \ | |/ | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
| * | Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -13/+13 |
| | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | Issue #26243: Only the level argument to zlib.compress() is keyword argument | Serhiy Storchaka | 2016-06-25 | 1 | -3/+3 |
| | | | | | | | | now. The first argument is positional-only. | ||||
* | | Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7. | Serhiy Storchaka | 2016-06-09 | 1 | -18/+35 |
| | | |||||
* | | Issue #5784: Merge zlib from 3.5 | Martin Panter | 2016-05-27 | 1 | -4/+7 |
|\ \ | |/ | |||||
| * | Issue #5784: Expand documentation and tests for zlib wbits parameter | Martin Panter | 2016-05-27 | 1 | -4/+7 |
| | | | | | | | | Based on documentation by AM Kuchling. | ||||
* | | Issue 26243: Forgot to update zlib doc strings in Argument Clinic | Martin Panter | 2016-02-10 | 1 | -2/+2 |
| | | |||||
* | | Issue #26243: zlib.compress() keyword argument support by Aviv Palivoda | Martin Panter | 2016-02-10 | 1 | -13/+14 |
|/ | |||||
* | Issue #26244: Clarify default zlib compression level in documentation | Martin Panter | 2016-02-03 | 1 | -3/+4 |
| | | | | Based on patch by Aviv Palivoda. | ||||
* | Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAX | Martin Panter | 2015-11-20 | 1 | -4/+4 |
| | | | | | | | | | | | | | | The underlying zlib library stores sizes in “unsigned int”. The corresponding Python parameters are all sizes of buffers filled in by zlib, so it is okay to reduce higher values to the UINT_MAX internal cap. OverflowError is still raised for sizes that do not fit in Py_ssize_t. Sizes are now limited to Py_ssize_t rather than unsigned long, because Python byte strings cannot be larger than Py_ssize_t. Previously this could result in a SystemError on 32-bit platforms. This resolves a regression in the gzip module when reading more than UINT_MAX or LONG_MAX bytes in one call, introduced by revision 62723172412c. | ||||
* | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the | Serhiy Storchaka | 2015-04-23 | 1 | -22/+11 |
| | | | | same line as function name. | ||||
* | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -4/+7 |
| | |||||
* | Issue #23492: Argument Clinic now generates argument parsing code with | Serhiy Storchaka | 2015-04-03 | 1 | -4/+4 |
| | | | | PyArg_Parse instead of PyArg_ParseTuple if possible. | ||||
* | Issue #23500: Argument Clinic is now smarter about generating the "#ifndef" | Larry Hastings | 2015-04-03 | 1 | -9/+5 |
| | | | | | | (empty) definition of the methoddef macro: it's only generated once, even if Argument Clinic processes the same symbol multiple times, and it's emitted at the end of all processing rather than immediately after the first use. | ||||
* | Issue #20530: Argument Clinic's signature format has been revised again. | Larry Hastings | 2014-02-09 | 1 | -13/+39 |
| | | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4. | ||||
* | Issue #20489: Explicitly qualified expressions for default values in methods. | Serhiy Storchaka | 2014-02-05 | 1 | -3/+3 |
| | |||||
* | #Issue 20456: Several improvements and bugfixes for Argument Clinic, | Larry Hastings | 2014-02-01 | 1 | -1/+17 |
| | | | | | including correctly generating code for Clinic blocks inside C preprocessor conditional blocks. | ||||
* | Issue #20326: Argument Clinic now uses a simple, unique signature to | Larry Hastings | 2014-01-28 | 1 | -13/+13 |
| | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date). | ||||
* | Issue #20193: The zlib module now uses Argument Clinic. | Serhiy Storchaka | 2014-01-26 | 1 | -0/+411 |