summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20287: Argument Clinic's output is now configurable, allowingLarry Hastings2014-01-183-58/+23
| | | | delaying its output or even redirecting it to a separate file.
* avoid a compiler warning about assigning const char * to char *.Gregory P. Smith2014-01-171-1/+1
|\
| * avoid a compiler warning about assigning const char * to char *.Gregory P. Smith2014-01-171-1/+1
| |
* | Issue #20226: Major improvements to Argument Clinic.Larry Hastings2014-01-166-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-162-0/+0
|\ \ | |/ | | | | test files.
| * Issue #19936: Remove executable bits from C source files and several forgottenSerhiy Storchaka2014-01-162-0/+0
| | | | | | | | test files.
* | Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-164-0/+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 #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-164-0/+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 line to use python3 executable in the unittestgui script.
* | Merge from 3.3.Stefan Krah2014-01-163-6/+0
|\ \ | |/
| * Issue #19936: Disable shebang lines in order to prevent using a randomStefan Krah2014-01-163-6/+0
| | | | | | | | system python.
* | Clinic-ize the crypt module. Derby!Antoine Pitrou2014-01-141-15/+56
| |
* | merge 3.3 (#20251)Benjamin Peterson2014-01-141-1/+0
|\ \ | |/
| * remove overly strict assertion (closes #20251)Benjamin Peterson2014-01-141-1/+0
| |
* | merge 3.3 (#20250)Benjamin Peterson2014-01-141-1/+3
|\ \ | |/
| * correct defaultdict signature in docstring (closes #20250)Benjamin Peterson2014-01-141-1/+3
| | | | | | | | Patch from Andrew Barnert.
| * merge 3.2 (#20246)Benjamin Peterson2014-01-141-0/+5
| |\
| | * complain when nbytes > buflen to fix possible buffer overflow (closes #20246)Benjamin Peterson2014-01-141-0/+5
| | |
| | * Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,Serhiy Storchaka2013-04-283-7/+7
| | | | | | | | | | | | such as was shipped with Centos 5 and Mac OS X 10.4.
| | * This local change was lost during the fixing of issue17192 to updateGregory P. Smith2013-04-301-0/+5
| | | | | | | | | | | | | | | | | | | | | libffi to 3.0.13. (i'm not sure if it is needed anymore but see issue 10309 for details which makes no mention of upstream; this change is already in 3.3 and 3.4 but may need reapplying to 2.7 as done here)
| * | fix build when SCHED_SPORADIC is defined (closes #20217)Benjamin Peterson2014-01-101-1/+1
| | |
* | | merge 3.3 (#20246)Benjamin Peterson2014-01-141-0/+5
| | |
* | | fix refleak in the error caseBenjamin Peterson2014-01-131-2/+2
| | |
* | | Issue #20228: Argument Clinic now has special support for class specialLarry Hastings2014-01-121-8/+2
| | | | | | | | | | | | methods.
* | | Issue #20214: Fixed a number of small issues and documentation errors inLarry Hastings2014-01-121-6/+6
| | | | | | | | | | | | Argument Clinic (see issue for details).
* | | Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly ↵Antoine Pitrou2014-01-091-4/+5
|\ \ \ | |/ / | | | | | | asked for.
| * | Remove conditional: it is useless at this point (OpenSSL headers are not yet ↵Antoine Pitrou2014-01-091-2/+0
| | | | | | | | | | | | included)
| * | Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly ↵Antoine Pitrou2014-01-091-2/+5
| | | | | | | | | | | | asked for.
* | | merge 3.3Benjamin Peterson2014-01-091-3/+1
|\ \ \ | |/ /
| * | fix zipimport ref leakBenjamin Peterson2014-01-091-3/+1
| | |
* | | (Merge 3.3) Issue #20113: os.readv() and os.writev() now raise an OSErrorVictor Stinner2014-01-081-9/+15
|\ \ \ | |/ / | | | | | | exception on error instead of returning -1.
| * | Issue #20113: os.readv() and os.writev() now raise an OSError exception onVictor Stinner2014-01-081-9/+15
| | | | | | | | | | | | error instead of returning -1.
* | | Fixes issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-081-48/+238
|\ \ \ | |/ / | | | | | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors).
| * | Fixes Issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-081-47/+238
| | | | | | | | | | | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors).
* | | Issue #19723: Missed one conversion to the new Argument Clinic syntax.Larry Hastings2014-01-071-3/+3
| | |
* | | Issue #12837: Silence a Clang compiler warning on OS X.Brett Cannon2014-01-071-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | Now makes CPython build without warnings on OS X under Clang with -Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-deprecated-declarations. Thanks to David Watson for taking an initial stab at a solution.
* | | Issue #19273: The marker comments Argument Clinic uses have been changedLarry Hastings2014-01-079-135/+135
| | | | | | | | | | | | to improve readability.
* | | Issue #20141: Improved Argument Clinic's support for the PyArg_Parse "O!"Larry Hastings2014-01-071-5/+5
| | | | | | | | | | | | format unit.
* | | Issue #20144: Argument Clinic now supports simple constants as parameterLarry Hastings2014-01-072-18/+62
| | | | | | | | | | | | | | | default values. inspect.Signature correspondingly supports them in __text_signature__ fields for builtins.
* | | Issue #20142: Py_buffer variables generated by Argument Clinic are nowLarry Hastings2014-01-061-4/+4
| | | | | | | | | | | | initialized with a default value.
* | | Issue #19659: Added documentation for Argument Clinic.Larry Hastings2014-01-041-5/+2
| | |
* | | Issue #19976: Argument Clinic METH_NOARGS functions now alwaysLarry Hastings2014-01-042-20/+137
| | | | | | | | | | | | take two parameters.
* | | Merge from 3.3.Stefan Krah2014-01-041-3/+3
|\ \ \ | |/ /
| * | Whitespace.Stefan Krah2014-01-041-3/+3
| | |
* | | * Issue #16113: Remove sha3 module again.Martin v. Löwis2014-01-0323-7930/+0
| | | | | | | | | | | | Patch by Christian Heimes, with modifications.
* | | Issue #18294: Fix uint_converter() in zlibmodule.c, fix the "> UINT_MAX" checkVictor Stinner2014-01-031-5/+6
| | |
* | | audioop: adpcm2lin() and lin2adpcm() now raises a TypeError instead of aVictor Stinner2014-01-031-0/+6
| | | | | | | | | | | | SystemError if the state type is invalid.
* | | threading.RLock._acquire_restore() now raises a TypeError instead of aVictor Stinner2014-01-021-3/+3
| | | | | | | | | | | | SystemError when it is not called with 2 arguments
* | | (Merge 3.3) parser: fix usage of Py_BuildValue() to build a parser errorVictor Stinner2014-01-021-1/+1
|\ \ \ | |/ / | | | | | | Fix typo: "os" format => "Os"
| * | parser: fix usage of Py_BuildValue() to build a parser errorVictor Stinner2014-01-021-1/+1
| | | | | | | | | | | | Fix typo: "os" format => "Os"
* | | whatsnew for gc.get_stats, plus doc tweaks.R David Murray2013-12-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarified the "At the moment" wording, and added the get_stats entry in the module summary that Serhiy noted was missing at the end of issue 16351. Given that pydoc lists all the function docstrings, I'm not sure that module summary section is actually needed; but, it is probably better to address that when the module is converted to use Argument Clinic. In the meantime we should keep the list complete.