summaryrefslogtreecommitdiffstats
path: root/Objects/clinic
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32240: Add the const qualifier to declarations of PyObject* array ↵Serhiy Storchaka2017-12-159-61/+61
| | | | arguments. (#4746)
* bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158)Serhiy Storchaka2017-10-283-12/+13
| | | separators that are not bytes-like objects.
* bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)Serhiy Storchaka2017-07-039-181/+61
| | | | | the bare METH_FASTCALL be used for functions with positional-only parameters.
* bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051)Sylvain2017-06-107-110/+110
| | | | | | | | 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".
* bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843)Serhiy Storchaka2017-04-081-30/+11
| | | | object.__reduce__() no longer takes arguments, object.__reduce_ex__() now requires one argument.
* Update Argument Clinic generated code for bpo-29878. (#1001)Serhiy Storchaka2017-04-052-4/+4
|
* bpo-29935: Fixed error messages in the index() method of tuple, list and ↵Serhiy Storchaka2017-03-302-4/+4
| | | | | deque (#887) when pass indices of wrong type.
* bpo-29793: Convert some builtin types constructors to Argument Clinic. (#615)Serhiy Storchaka2017-03-197-2/+282
|
* bpo-20186: Convert tuple object implementation to Argument Clinic. (#614)Serhiy Storchaka2017-03-191-0/+102
|
* bpo-20185: Convert typeobject.c to Argument Clinic. (#544)Serhiy Storchaka2017-03-191-0/+259
| | | Based on patch by Vajrasky Kok.
* bpo-20185: Convert float object implementation to Argument Clinic. (#543)Serhiy Storchaka2017-03-111-0/+286
| | | Based on patch by Vajrasky Kok.
* bpo-20185: Convert list object implementation to Argument Clinic. (#542)Serhiy Storchaka2017-03-111-0/+300
|
* Issue #29311: Regenerate Argument Clinic.Serhiy Storchaka2017-02-041-2/+2
|
* Issue #20185: Converted the int class to Argument Clinic.Serhiy Storchaka2017-02-011-0/+192
| | | | Based on patch by Vajrasky Kok.
* Issues #29311, #29289: Fixed and improved docstrings for dict and OrderedDictSerhiy Storchaka2017-01-242-14/+15
| | | | methods.
* Fix grammar in doc string, RST markupMartin Panter2017-01-241-2/+2
|
* Issue #29289: Argument Clinic generates reasonable name for the parameter ↵Serhiy Storchaka2017-01-191-5/+5
| | | | "default".
* Issue #29311: Argument Clinic generates reasonable name for the parameter ↵Serhiy Storchaka2017-01-191-9/+10
| | | | "default".
* Issue #20186: Converted builtins enumerate() and reversed() to Argument Clinic.Serhiy Storchaka2017-01-191-0/+71
| | | | Patch by Tal Einat.
* dict.get() and dict.setdefault() now use ACVictor Stinner2017-01-191-1/+69
| | | | | | | | | | | Issue #29311: dict.get() and dict.setdefault() methods now use Argument Clinic to parse arguments. Their calling convention changes from METH_VARARGS to METH_FASTCALL which avoids the creation of a temporary tuple. The signature of docstrings is also enhanced. For example, get(...) becomes: get(self, key, default=None, /)
* Convert some OrderedDict methods to Argument ClinicVictor Stinner2017-01-171-0/+135
| | | | | | | | | Issue #29289. Convert methods: * fromkeys() class method * setdefault() * popitem() * move_to_end()
* Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-174-35/+75
| | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using "boring" positional arguments. Manually fix _elementtree: _elementtree_XMLParser_doctype() must remain consistent with the clinic code.
* Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-173-39/+87
| | | | | 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_ParseStackAndKeywordsVictor Stinner2017-01-173-15/+15
| | | | Issue #29286.
* Issue #20180: forgot to update AC output.INADA Naoki2017-01-161-23/+21
|
* Issue #20180: convert unicode methods to AC.INADA Naoki2017-01-161-1/+894
|
* Issue #27810: Rerun Argument Clinic on all modulesVictor Stinner2016-09-102-32/+32
|
* Issue #27506: Support bytes/bytearray.translate() delete as keyword argumentMartin Panter2016-08-272-46/+28
| | | | Patch by Xiang Zhang.
* Issue #27574: Decreased an overhead of parsing keyword arguments in functionsSerhiy Storchaka2016-08-142-18/+26
| | | | implemented with using Argument Clinic.
* Issue #27007: The fromhex() class methods of bytes and bytearray subclassesSerhiy Storchaka2016-07-011-4/+4
| | | | now return an instance of corresponding subclass.
* Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7.Serhiy Storchaka2016-06-094-47/+90
|
* Got rid of redundand "self" parameter declarations.Serhiy Storchaka2016-05-021-11/+11
| | | | Argument Clinic is now able to infer all needed information.
* Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at theSerhiy Storchaka2015-04-233-53/+25
| | | | same line as function name.
* Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-142-10/+18
|
* Issue #23492: Argument Clinic now generates argument parsing code withSerhiy Storchaka2015-04-032-20/+20
| | | | PyArg_Parse instead of PyArg_ParseTuple if possible.
* Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-034-0/+1288