Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-39939: Add str.removeprefix and str.removesuffix (GH-18939) | sweeneyde | 2020-04-22 | 3 | -3/+233 |
| | | | | | Added str.removeprefix and str.removesuffix methods and corresponding bytes, bytearray, and collections.UserString methods to remove affixes from a string if present. See PEP 616 for a full description. | ||||
* | bpo-39573: Update clinic to use Py_IS_TYPE() function (GH-18507) | Dong-hee Na | 2020-02-14 | 1 | -2/+2 |
| | |||||
* | Document CodeType.replace (GH-17776) | Anthony Sottile | 2020-01-01 | 1 | -2/+2 |
| | |||||
* | bpo-38629: implement __floor__ and __ceil__ for float type (GH-16985) | Batuhan Taşkaya | 2019-12-15 | 1 | -1/+37 |
| | |||||
* | bpo-38409: Fix grammar in str.strip() docstring (GH-16682) | Zachary Ware | 2019-10-09 | 1 | -2/+2 |
| | |||||
* | bpo-37206: Unrepresentable default values no longer represented as None. ↵ | Serhiy Storchaka | 2019-09-14 | 6 | -15/+15 |
| | | | | | | | (GH-13933) In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values (like in the optional third parameter of getattr). "None" should be used if None is accepted as argument and passing None has the same effect as not passing the argument at all. | ||||
* | bpo-37034: Display argument name on errors with keyword arguments with ↵ | Rémi Lapeyre | 2019-08-29 | 9 | -52/+52 |
| | | | | Argument Clinic. (GH-13593) | ||||
* | Improve docstring of list.sort (GH-8516) | Tim Hoffmann | 2019-06-01 | 1 | -2/+10 |
| | |||||
* | bpo-22385: Support output separators in hex methods. (#13578) | Gregory P. Smith | 2019-05-29 | 3 | -2/+214 |
| | | | | | | | | | | | | | | | | | | * bpo-22385: Support output separators in hex methods. Also in binascii.hexlify aka b2a_hex. The underlying implementation behind all hex generation in CPython uses the same pystrhex.c implementation. This adds support to bytes, bytearray, and memoryview objects. The binascii module functions exist rather than being slated for deprecation because they return bytes rather than requiring an intermediate step through a str object. This change was inspired by MicroPython which supports sep in its binascii implementation (and does not yet support the .hex methods). https://bugs.python.org/issue22385 | ||||
* | bpo-37032: Add CodeType.replace() method (GH-13542) | Victor Stinner | 2019-05-24 | 1 | -0/+256 |
| | |||||
* | bpo-20180: Use argument clinic for dict.pop() and dict.popitem() (GH-12792) | Inada Naoki | 2019-04-12 | 1 | -1/+58 |
| | |||||
* | bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵ | Serhiy Storchaka | 2019-03-14 | 12 | -102/+704 |
| | | | | (GH-12058) | ||||
* | bpo-35582: Argument Clinic: Optimize the "all boring objects" case. (GH-11520) | Serhiy Storchaka | 2019-01-11 | 8 | -59/+109 |
| | | | | | Use _PyArg_CheckPositional() and inlined code instead of PyArg_UnpackTuple() and _PyArg_UnpackStack() if all parameters are positional and use the "object" converter. | ||||
* | bpo-35582: Argument Clinic: inline parsing code for positional parameters. ↵ | Serhiy Storchaka | 2019-01-11 | 8 | -51/+412 |
| | | | | (GH-11313) | ||||
* | bpo-23867: Argument Clinic: inline parsing code for a single positional ↵ | Serhiy Storchaka | 2018-12-25 | 6 | -19/+87 |
| | | | | parameter. (GH-9689) | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. ↵ | Serhiy Storchaka | 2018-11-27 | 9 | -61/+61 |
| | | | | | | | | (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-33462: Add __reversed__ to dict and dict views (GH-6827) | Rémi Lapeyre | 2018-11-06 | 1 | -1/+19 |
| | |||||
* | Add missing closing quote and trailing period in str.isidentifier() ↵ | Emanuele Gaifas | 2018-10-08 | 1 | -2/+2 |
| | | | | | docstring (GH-9756) This rectifies commit ffc5a14d00db984c8e72c7b67da8a493e17e2c14. | ||||
* | bpo-33014: Clarify str.isidentifier docstring (GH-6088) | Sanyam Khurana | 2018-10-08 | 1 | -3/+3 |
| | | | | | | * bpo-33014: Clarify str.isidentifier docstring * bpo-33014: Add code example in isidentifier documentation | ||||
* | bpo-33073: Adding as_integer_ratio to ints. (GH-8750) | Lisa Roach | 2018-09-14 | 1 | -1/+29 |
| | |||||
* | bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342) | INADA Naoki | 2018-01-27 | 1 | -1/+22 |
| | |||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 9 | -61/+61 |
| | | | | arguments. (#4746) | ||||
* | bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158) | Serhiy Storchaka | 2017-10-28 | 3 | -12/+13 |
| | | | separators that are not bytes-like objects. | ||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 9 | -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) | Sylvain | 2017-06-10 | 7 | -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 Storchaka | 2017-04-08 | 1 | -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 Storchaka | 2017-04-05 | 2 | -4/+4 |
| | |||||
* | bpo-29935: Fixed error messages in the index() method of tuple, list and ↵ | Serhiy Storchaka | 2017-03-30 | 2 | -4/+4 |
| | | | | | deque (#887) when pass indices of wrong type. | ||||
* | bpo-29793: Convert some builtin types constructors to Argument Clinic. (#615) | Serhiy Storchaka | 2017-03-19 | 7 | -2/+282 |
| | |||||
* | bpo-20186: Convert tuple object implementation to Argument Clinic. (#614) | Serhiy Storchaka | 2017-03-19 | 1 | -0/+102 |
| | |||||
* | bpo-20185: Convert typeobject.c to Argument Clinic. (#544) | Serhiy Storchaka | 2017-03-19 | 1 | -0/+259 |
| | | | Based on patch by Vajrasky Kok. | ||||
* | bpo-20185: Convert float object implementation to Argument Clinic. (#543) | Serhiy Storchaka | 2017-03-11 | 1 | -0/+286 |
| | | | Based on patch by Vajrasky Kok. | ||||
* | bpo-20185: Convert list object implementation to Argument Clinic. (#542) | Serhiy Storchaka | 2017-03-11 | 1 | -0/+300 |
| | |||||
* | Issue #29311: Regenerate Argument Clinic. | Serhiy Storchaka | 2017-02-04 | 1 | -2/+2 |
| | |||||
* | Issue #20185: Converted the int class to Argument Clinic. | Serhiy Storchaka | 2017-02-01 | 1 | -0/+192 |
| | | | | Based on patch by Vajrasky Kok. | ||||
* | Issues #29311, #29289: Fixed and improved docstrings for dict and OrderedDict | Serhiy Storchaka | 2017-01-24 | 2 | -14/+15 |
| | | | | methods. | ||||
* | Fix grammar in doc string, RST markup | Martin Panter | 2017-01-24 | 1 | -2/+2 |
| | |||||
* | Issue #29289: Argument Clinic generates reasonable name for the parameter ↵ | Serhiy Storchaka | 2017-01-19 | 1 | -5/+5 |
| | | | | "default". | ||||
* | Issue #29311: Argument Clinic generates reasonable name for the parameter ↵ | Serhiy Storchaka | 2017-01-19 | 1 | -9/+10 |
| | | | | "default". | ||||
* | Issue #20186: Converted builtins enumerate() and reversed() to Argument Clinic. | Serhiy Storchaka | 2017-01-19 | 1 | -0/+71 |
| | | | | Patch by Tal Einat. | ||||
* | dict.get() and dict.setdefault() now use AC | Victor Stinner | 2017-01-19 | 1 | -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 Clinic | Victor Stinner | 2017-01-17 | 1 | -0/+135 |
| | | | | | | | | | Issue #29289. Convert methods: * fromkeys() class method * setdefault() * popitem() * move_to_end() | ||||
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 4 | -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_FASTCALL | Victor Stinner | 2017-01-17 | 3 | -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_ParseStackAndKeywords | Victor Stinner | 2017-01-17 | 3 | -15/+15 |
| | | | | Issue #29286. | ||||
* | Issue #20180: forgot to update AC output. | INADA Naoki | 2017-01-16 | 1 | -23/+21 |
| | |||||
* | Issue #20180: convert unicode methods to AC. | INADA Naoki | 2017-01-16 | 1 | -1/+894 |
| | |||||
* | Issue #27810: Rerun Argument Clinic on all modules | Victor Stinner | 2016-09-10 | 2 | -32/+32 |
| | |||||
* | Issue #27506: Support bytes/bytearray.translate() delete as keyword argument | Martin Panter | 2016-08-27 | 2 | -46/+28 |
| | | | | Patch by Xiang Zhang. | ||||
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functions | Serhiy Storchaka | 2016-08-14 | 2 | -18/+26 |
| | | | | implemented with using Argument Clinic. |