summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Issue #20226: Major improvements to Argument Clinic.Larry Hastings2014-01-162-101/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: Remove executable bits from C source files and several forgottenSerhiy Storchaka2014-01-161-0/+0
|\ \ \ | |/ / | | | | | | test files.
| * | Issue #19936: Remove executable bits from C source files and several forgottenSerhiy Storchaka2014-01-161-0/+0
| | | | | | | | | | | | test files.
* | | Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-1614-4/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | 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 #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-1610-1/+1
| | | | | | | | | | | | | | | | | | | | | 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 line to use python3 executable in the unittestgui script.
* | | Closes #20235: Report file and line on unexpected exceptions in Argument Clinic.Georg Brandl2014-01-161-1/+6
| | |
* | | Issue #20268: Argument Clinic now supports cloning the parametersLarry Hastings2014-01-151-0/+46
| | | | | | | | | | | | and return converter from existing functions.
* | | Replace assert with a proper errorAntoine Pitrou2014-01-141-2/+4
| | |
* | | improve an error message in clinicAntoine Pitrou2014-01-141-1/+4
| | |
* | | Issue #20228: Argument Clinic now has special support for class specialLarry Hastings2014-01-121-9/+114
| | | | | | | | | | | | methods.
* | | Issue #20214: Fixed a number of small issues and documentation errors inLarry Hastings2014-01-121-24/+94
| | | | | | | | | | | | Argument Clinic (see issue for details).
* | | Issue #20196: Fixed a bug where Argument Clinic did not generate correctLarry Hastings2014-01-121-0/+6
| | | | | | | | | | | | | | | parsing code for functions with positional-only parameters where all arguments are optional.
* | | Fixed the serve.py script.Serhiy Storchaka2014-01-111-1/+1
|\ \ \ | |/ / | | | | | | The application object must return an iterable yielding bytestrings.
| * | Fixed the serve.py script.Serhiy Storchaka2014-01-111-1/+1
| | | | | | | | | | | | The application object must return an iterable yielding bytestrings.
* | | Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka2014-01-091-1/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment.
| * | Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka2014-01-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment.
* | | Issue #19273: The marker comments Argument Clinic uses have been changedLarry Hastings2014-01-071-6/+7
| | | | | | | | | | | | to improve readability.
* | | Issue #20157: When Argument Clinic renames a parameter because its nameLarry Hastings2014-01-072-5/+32
| | | | | | | | | | | | collides with a C keyword, it no longer exposes that rename to PyArg_Parse.
* | | Issue #20141: Improved Argument Clinic's support for the PyArg_Parse "O!"Larry Hastings2014-01-071-14/+14
| | | | | | | | | | | | format unit.
* | | Issue #20144: Argument Clinic now supports simple constants as parameterLarry Hastings2014-01-071-5/+23
| | | | | | | | | | | | | | | default values. inspect.Signature correspondingly supports them in __text_signature__ fields for builtins.
* | | Issue #20143: The line numbers reported in Argument Clinic errors areLarry Hastings2014-01-061-2/+3
| | | | | | | | | | | | now more accurate.
* | | Issue #20142: Py_buffer variables generated by Argument Clinic are nowLarry Hastings2014-01-061-1/+9
| | | | | | | | | | | | initialized with a default value.
* | | Argument Clinic: fixed test suite, improved howto.Larry Hastings2014-01-052-14/+19
| | |
* | | Issue #19659: Added documentation for Argument Clinic.Larry Hastings2014-01-041-5/+49
| | |
* | | Issue #19976: Argument Clinic METH_NOARGS functions now alwaysLarry Hastings2014-01-041-11/+2
| | | | | | | | | | | | take two parameters.
* | | * Issue #16113: Remove sha3 module again.Martin v. Löwis2014-01-031-1/+0
| | | | | | | | | | | | Patch by Christian Heimes, with modifications.
* | | Issue #19728: Enable pip installation by default on Windows.Martin v. Löwis2014-01-021-8/+13
| | |
* | | Issue #20046: Locale alias table no longer contains entities which can beSerhiy Storchaka2013-12-261-0/+27
| | | | | | | | | | | | calculated. Generalized support of the euro modifier.
* | | Issue #20027: Fixed locale aliases for devanagari locales.Serhiy Storchaka2013-12-261-0/+6
|\ \ \ | |/ /
| * | Issue #20027: Fixed locale aliases for devanagari locales.Serhiy Storchaka2013-12-261-0/+6
| | |
* | | Issue #20033: makelocalealias.py now works with non-ASCII locales and producesSerhiy Storchaka2013-12-231-5/+5
|\ \ \ | |/ / | | | | | | the same result as in 2.x.
| * | Issue #20033: makelocalealias.py now works with non-ASCII locales and producesSerhiy Storchaka2013-12-231-5/+5
| | | | | | | | | | | | the same result as in 2.x.
* | | merge 3.3 (#19563)Benjamin Peterson2013-12-231-1/+1
|\ \ \ | |/ /
| * | update Barry's email (#19563)Benjamin Peterson2013-12-231-1/+1
| | |
* | | Issue #18215: Add script Tools/ssl/test_multiple_versions.py to compile andChristian Heimes2013-12-161-0/+241
| | | | | | | | | | | | run Python's unit tests with multiple versions of OpenSSL.
* | | Issue #19788: kill_python(_d).exe is now run as a PreBuildEvent on theZachary Ware2013-11-262-4/+2
|\ \ \ | |/ / | | | | | | | | | pythoncore sub-project. This should prevent build errors due a previous build's python(_d).exe still running.
| * | Issue #19788: kill_python(_d).exe is now run as a PreBuildEvent on theZachary Ware2013-11-262-4/+2
| | | | | | | | | | | | | | | pythoncore sub-project. This should prevent build errors due a previous build's python(_d).exe still running.
* | | Clinic: fix "self converters" with METH_NOARGS functions.Larry Hastings2013-11-241-1/+1
| | |
* | | Clinic: Add warning for untested (and unused in CPython!) format units.Larry Hastings2013-11-241-0/+1
| | |
* | | Issue #19674: inspect.signature() now produces a correct signatureLarry Hastings2013-11-231-34/+25
| | | | | | | | | | | | for some builtins.
* | | Issue #19358: "make clinic" now runs the Argument Clinic preprocessorLarry Hastings2013-11-231-3/+24
| | | | | | | | | | | | over all CPython source files.
* | | Issue #19730: Argument Clinic now supports all the existing PyArgLarry Hastings2013-11-231-82/+269
| | | | | | | | | | | | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
* | | Update Tcl/Tk to 8.6.1.Martin v. Löwis2013-11-233-18/+18
| | |
* | | Package _overlapped.Martin v. Löwis2013-11-231-0/+1
| | |
* | | Issue #15204: Deprecated the 'U' mode in file-like objects.Serhiy Storchaka2013-11-233-4/+6
| | |
* | | Undo (hopefully) buildbot failuresAntoine Pitrou2013-11-231-1/+1
|\ \ \ | |/ /
| * | Undo (hopefully) buildbot failuresAntoine Pitrou2013-11-231-1/+1
| | |
| * | Issue #19308: fix the gdb plugin on gdbs linked with Python 3Antoine Pitrou2013-11-231-52/+69
| | |
* | | Issue #19308: fix the gdb plugin on gdbs linked with Python 3Antoine Pitrou2013-11-231-52/+69
| | |
* | | Update xz to 5.0.5.Martin v. Löwis2013-11-221-2/+3
| | |