Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-41342: Convert int.__round__ to Argument Clinic (GH-21549) | Serhiy Storchaka | 2020-07-20 | 1 | -1/+35 |
| | |||||
* | bpo-29882: Add an efficient popcount method for integers (#771) | Niklas Fiekas | 2020-05-29 | 1 | -1/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | * bpo-29882: Add an efficient popcount method for integers * Update 'sign bit' and versionadded in docs * Add entry to whatsnew document * Doc: use positive example, mention population count * Minor cleanups of the core code * Move popcount_digit closer to where it's used * Use z instead of self after conversion * Add 'absolute value' and 'population count' to docstring * Fix clinic error about missing summary line * Ensure popcount_digit is portable with 64-bit ints Co-authored-by: Mark Dickinson <dickinsm@gmail.com> | ||||
* | bpo-40792: Make the result of PyNumber_Index() always having exact type int. ↵ | Serhiy Storchaka | 2020-05-28 | 1 | -2/+2 |
| | | | | | | | | | | | | (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 | -6/+1 |
| | | | | 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 | -4/+4 |
| | | | | Argument Clinic. (GH-13593) | ||||
* | bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵ | Serhiy Storchaka | 2019-03-14 | 1 | -10/+79 |
| | | | | (GH-12058) | ||||
* | bpo-35582: Argument Clinic: inline parsing code for positional parameters. ↵ | Serhiy Storchaka | 2019-01-11 | 1 | -2/+2 |
| | | | | (GH-11313) | ||||
* | bpo-23867: Argument Clinic: inline parsing code for a single positional ↵ | Serhiy Storchaka | 2018-12-25 | 1 | -2/+7 |
| | | | | parameter. (GH-9689) | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 in Argument Clinic. ↵ | Serhiy Storchaka | 2018-11-27 | 1 | -3/+3 |
| | | | | | | | | (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-33073: Adding as_integer_ratio to ints. (GH-8750) | Lisa Roach | 2018-09-13 | 1 | -1/+29 |
| | |||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -3/+3 |
| | | | | arguments. (#4746) | ||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 1 | -3/+3 |
| | | | | | the bare METH_FASTCALL be used for functions with positional-only parameters. | ||||
* | bpo-29793: Convert some builtin types constructors to Argument Clinic. (#615) | Serhiy Storchaka | 2017-03-19 | 1 | -1/+23 |
| | |||||
* | Issue #20185: Converted the int class to Argument Clinic. | Serhiy Storchaka | 2017-02-01 | 1 | -0/+192 |
Based on patch by Vajrasky Kok. |