summaryrefslogtreecommitdiffstats
path: root/Tools/clinic/clinic_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-1/+1
| | | | Based on patch by Ville Skyttä.
* Remove duplicated tests.Serhiy Storchaka2016-04-241-10/+0
| | | | There were duplicated methods with the same name and body.
* Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-091-11/+32
| | | | | | | 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 20456: Several improvements and bugfixes for Argument Clinic,Larry Hastings2014-02-011-17/+30
| | | | | including correctly generating code for Clinic blocks inside C preprocessor conditional blocks.
* Issue #20287: Argument Clinic's output is now configurable, allowingLarry Hastings2014-01-181-0/+29
| | | | delaying its output or even redirecting it to a separate file.
* Issue #20226: Added tests for new features and regressions.Larry Hastings2014-01-161-0/+15
|
* Issue #20226: Major improvements to Argument Clinic.Larry Hastings2014-01-161-17/+6
| | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-2/+0
| | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
* Issue #20157: When Argument Clinic renames a parameter because its nameLarry Hastings2014-01-071-0/+19
| | | | collides with a C keyword, it no longer exposes that rename to PyArg_Parse.
* Argument Clinic: fixed test suite, improved howto.Larry Hastings2014-01-051-10/+14
|
* Issue #19390: Argument Clinic no longer accepts malformed Python and C ids.Larry Hastings2013-10-271-0/+14
|
* Issue #16612: Add "Argument Clinic", a compile-time preprocessorLarry Hastings2013-10-191-0/+699
for C files to generate argument parsing code. (See PEP 436.)