Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-26901: Fix the Argument Clinic test suite (GH-8879) | Victor Stinner | 2018-09-03 | 1 | -791/+0 |
| | | | | | | | | | | * Fix Tools/clinic/clinic_test.py: add missing FakeClinic.destination_buffers attribute and pass a file argument to Clinic(). * Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py: add temporary Tools/clinic/ to sys.path to import the clinic module. Co-Authored-By: Pablo Galindo <pablogsal@gmail.com> | ||||
* | bpo-20260: Implement non-bitwise unsigned int converters for Argument ↵ | Serhiy Storchaka | 2018-07-26 | 1 | -13/+21 |
| | | | | Clinic. (GH-8434) | ||||
* | bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039) | Tal Einat | 2018-07-06 | 1 | -2/+22 |
| | | | | * converted bytes methods: expandtabs, ljust, rjust, center, zfill * updated char_convertor to properly set the C default value | ||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -2/+2 |
| | | | | arguments. (#4746) | ||||
* | bpo-31926: fix missing *_METHODDEF statements by argument clinic (#4230) | Tal Einat | 2017-11-03 | 1 | -2/+2 |
| | | | | | | | | | 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 | -10/+7 |
| | | | | | 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 | -7/+7 |
| | | | | | | | | 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-30492: Allow make clinic to work out of tree. (#1836) | Gregory P. Smith | 2017-05-27 | 1 | -2/+10 |
| | | | | | | * bpo-30492: Allow make clinic to work out of tree. * Use os.curdir instead of "." as the default value. | ||||
* | bpo-29935: Fixed error messages in the index() method of tuple, list and ↵ | Serhiy Storchaka | 2017-03-30 | 1 | -2/+2 |
| | | | | | deque (#887) when pass indices of wrong type. | ||||
* | bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716) | Serhiy Storchaka | 2017-03-30 | 1 | -2/+10 |
| | | | if pass `accept={int, NoneType}`. | ||||
* | bpo-29919: Remove unused imports found by pyflakes (#137) | Victor Stinner | 2017-03-27 | 1 | -2/+0 |
| | | | Make also minor PEP8 coding style fixes on modified imports. | ||||
* | bpo-29748: Added the slice index converter in Argument Clinic. (#549) | Serhiy Storchaka | 2017-03-19 | 1 | -0/+12 |
| | |||||
* | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -1/+5 |
| | |||||
* | bpo-20185: Convert float object implementation to Argument Clinic. (#543) | Serhiy Storchaka | 2017-03-11 | 1 | -1/+0 |
| | | | Based on patch by Vajrasky Kok. | ||||
* | Argument Clinic: Use METH_FASTCALL for boring positionals | Victor Stinner | 2017-01-17 | 1 | -9/+25 |
| | | | | | | | | Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to parse "boring" position arguments. METH_FASTCALL is faster since it avoids the creation of a temporary tuple to pass positional arguments. Replace PyArg_UnpackTuple() with _PyArg_UnpackStack()+_PyArg_NoStackKeywords(). | ||||
* | Argument Clinic: Use METH_FASTCALL for positionals | Victor Stinner | 2017-01-17 | 1 | -14/+32 |
| | | | | | | Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to parse position arguments. METH_FASTCALL is faster since it avoids the creation of a temporary tuple to pass positional arguments. | ||||
* | Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords | Victor Stinner | 2017-01-17 | 1 | -1/+1 |
| | | | | Issue #29286. | ||||
* | Emit METH_FASTCALL code in Argument Clinic | Victor Stinner | 2016-09-10 | 1 | -0/+18 |
| | | | | | | | | | Issue #27810: * Modify vgetargskeywordsfast() to work on a C array of PyObject* rather than working on a tuple directly. * Add _PyArg_ParseStack() * Argument Clinic now emits code using the new METH_FASTCALL calling convention | ||||
* | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 1 | -1/+1 |
| | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | clinic: PY_LONG_LONG -> long long | Benjamin Peterson | 2016-09-08 | 1 | -5/+5 |
| | |||||
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functions | Serhiy Storchaka | 2016-08-14 | 1 | -8/+6 |
| | | | | implemented with using Argument Clinic. | ||||
* | Issue #27626: Merge spelling fixes from 3.5 | Martin Panter | 2016-07-28 | 1 | -1/+1 |
|\ | |||||
| * | Issue #27626: Spelling fixes in docs, comments and internal names | Martin Panter | 2016-07-28 | 1 | -1/+1 |
| | | | | | | | | Based on patch by Ville Skyttä. | ||||
* | | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -1/+1 |
|\ \ | |/ | | | | | 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 | -1/+1 |
| | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | Issue #26282: PyArg_ParseTupleAndKeywords() and Argument Clinic now support | Serhiy Storchaka | 2016-06-09 | 1 | -26/+25 |
| | | | | | | | | positional-only and keyword parameters in the same function. | ||||
* | | Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7. | Serhiy Storchaka | 2016-06-09 | 1 | -14/+23 |
|/ | |||||
* | Issue #26305: Argument Clinic now escapes braces. No need to double them. | Serhiy Storchaka | 2016-06-09 | 1 | -13/+14 |
| | |||||
* | Remove duplicated tests. | Serhiy Storchaka | 2016-04-24 | 1 | -10/+0 |
| | | | | There were duplicated methods with the same name and body. | ||||
* | Issue #26316: Fix variable name typo in Argument Clinic | Martin Panter | 2016-02-14 | 1 | -1/+1 |
| | |||||
* | Issue #24000: Improved Argument Clinic's mapping of converters to legacy | Larry Hastings | 2015-05-08 | 1 | -51/+72 |
| | | | | "format units". Updated the documentation to match. | ||||
* | Issue #24001: Argument Clinic converters now use accept={type} | Larry Hastings | 2015-05-04 | 1 | -52/+90 |
| | | | | instead of types={'type'} to specify the types the converter accepts. | ||||
* | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the | Serhiy Storchaka | 2015-04-23 | 1 | -9/+4 |
| | | | | same line as function name. | ||||
* | Issue #23935: Argument Clinic's understanding of format units | Larry Hastings | 2015-04-16 | 1 | -60/+49 |
| | | | | | accepting bytes, bytearrays, and buffers is now consistent with both the documentation and the implementation. | ||||
* | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -0/+57 |
| | |||||
* | Merge with 3.4 | Zachary Ware | 2015-04-13 | 1 | -1/+1 |
|\ | |||||
| * | Make Argument Clinic's '--make' option work on Windows. | Zachary Ware | 2015-04-13 | 1 | -1/+1 |
| | | |||||
* | | Issue #20586: Argument Clinic now ensures signatures on functions without ↵ | Zachary Ware | 2015-04-13 | 1 | -3/+10 |
| | | | | | | | | docstrings. | ||||
* | | Issue #23492: Argument Clinic now generates argument parsing code with | Serhiy Storchaka | 2015-04-03 | 1 | -17/+33 |
| | | | | | | | | PyArg_Parse instead of PyArg_ParseTuple if possible. | ||||
* | | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -7/+7 |
| | | |||||
* | | Issue #23500: Argument Clinic is now smarter about generating the "#ifndef" | Larry Hastings | 2015-04-03 | 1 | -65/+95 |
| | | | | | | | | | | | | (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 #23641: Cleaned out legacy dunder names from tests and docs. | Serhiy Storchaka | 2015-03-12 | 1 | -1/+3 |
|\ \ | |/ | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__. | ||||
| * | Issue #23641: Cleaned out legacy dunder names from tests and docs. | Serhiy Storchaka | 2015-03-12 | 1 | -1/+0 |
| | | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. | ||||
* | | Issue #22823: Use set literals instead of creating a set from a tuple. | Serhiy Storchaka | 2014-11-15 | 1 | -9/+9 |
| | | |||||
* | | Issue #22186: Fix typos in Lib/. | Berker Peksag | 2014-10-19 | 1 | -3/+3 |
|\ \ | |/ | | | | | Patch by Févry Thibault. | ||||
| * | Issue #22186: Fix typos in Lib/. | Berker Peksag | 2014-10-19 | 1 | -3/+3 |
| | | | | | | | | Patch by Févry Thibault. | ||||
* | | Issue #22615: Argument Clinic now supports the "type" argument for the | Larry Hastings | 2014-10-13 | 1 | -1/+3 |
| | | | | | | | | | | int converter. This permits using the int converter with enums and typedefs. | ||||
* | | Issue #22120: For functions using an unsigned integer return converter, | Larry Hastings | 2014-08-05 | 1 | -1/+5 |
| | | | | | | | | | | Argument Clinic now generates a cast to that type for the comparison to -1 in the generated code. (This supresses a compilation warning.) | ||||
* | | Argument Clinic bugfix: Don't let the C preprocessor "Monitor" see lines | Larry Hastings | 2014-07-27 | 1 | -3/+4 |
|/ | | | | | | that we are scanning for the output marker. If we don't find it, we will scan them again, so it sees them twice, and it can get confused (like thinking we're still in a comment). | ||||
* | Issue #21629: Fix Argument Clinic's "--converters" feature. | Larry Hastings | 2014-06-11 | 1 | -3/+1 |
| |