Serhiy Storchaka
2c5ddbe030
Issue #20193 : The zlib module now uses Argument Clinic.
12 years ago
Benjamin Peterson
b62deac9a3
cleanup after custom buffer converter
12 years ago
Benjamin Peterson
08673c57f0
fix refleak on error
12 years ago
Larry Hastings
f0537e8d1c
Issue #20390 : Final fix, for generating NoPositional/NoKeyword for __init__ calls.
12 years ago
Larry Hastings
f256c22f34
Fix for catestrophic errors in previous checkin (Argument Clinic rollup patch).
12 years ago
Larry Hastings
c20472640c
Issue #20390 : Small fixes and improvements for Argument Clinic.
12 years ago
Victor Stinner
933209689e
Issue #20311 : Revert 033137c12d88, select.epoll.poll() rounds again the timeout
towards zero
12 years ago
Serhiy Storchaka
98c779e8da
Issue #20193 : The _lzma module now uses Argument Clinic.
LZMACompressor.__init__ is left not converted.
12 years ago
Serhiy Storchaka
1bc4bb2af1
Issue #20193 : The _bz2 module now uses Argument Clinic.
12 years ago
Serhiy Storchaka
8d00d73249
Issue #20133 : The audioop module now uses Argument Clinic.
12 years ago
Serhiy Storchaka
12785617c8
Fixed converting errors in the binascii module (issue20151).
a2b_qp() now accepts keyword arguments.
All "ascii" parameters is renamed to "data" for consistancy with a2b_qp().
12 years ago
Serhiy Storchaka
3ffd913d66
Issue #20151 : The binascii module now uses Argument Clinic.
12 years ago
Benjamin Peterson
f0b463ad84
new plan: just remove typecasts ( closes #20374 )
12 years ago
Larry Hastings
5c66189e88
Issue #20189 : Four additional builtin types (PyTypeObject,
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
12 years ago
Benjamin Peterson
5f6bf55965
use new readline function types ( closes #20374 )
12 years ago
Serhiy Storchaka
744135d7bb
Issue #19936 : Restored executable bits for several libffi files.
These files have shebangs and executable bits in the libffi distribution.
12 years ago
Larry Hastings
462582651c
Two minor Argument Clinic bugfixes: use the name of the class in the
docstring for __new__ and __init__, and always use "goto exit" instead of
returning "NULL" for failure to parse (as _new__ and __init__ return ints).
12 years ago
Victor Stinner
665486e0e7
Issue #20311 : select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.
12 years ago
Serhiy Storchaka
7e52705ee3
Issue #20315 : Removed support for backward compatibility with early 2.x versions.
12 years ago
Larry Hastings
b7ccb20423
Issue #20294 : Argument Clinic now supports argument parsing for __new__ and
__init__ functions.
12 years ago
Benjamin Peterson
e83ed43281
improve description of buffers argument for readv/writev ( closes #17811 )
Patch by Nikolaus Rath.
12 years ago
Larry Hastings
bebf73511a
Issue #20287 : Argument Clinic's output is now configurable, allowing
delaying its output or even redirecting it to a separate file.
12 years ago
Gregory P. Smith
f34890937b
avoid a compiler warning about assigning const char * to char *.
12 years ago
Larry Hastings
2a727916c5
Issue #20226 : Major improvements to Argument Clinic.
* 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.
12 years ago
Serhiy Storchaka
7f470d0f9c
Issue #19936 : Remove executable bits from C source files and several forgotten
test files.
12 years ago
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
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.
12 years ago
Stefan Krah
16540408f4
Issue #19936 : Disable shebang lines in order to prevent using a random
system python.
12 years ago
Antoine Pitrou
f5207e617b
Clinic-ize the crypt module. Derby!
12 years ago
Benjamin Peterson
a677d7628b
remove overly strict assertion ( closes #20251 )
12 years ago
Benjamin Peterson
9cb33b7d03
correct defaultdict signature in docstring ( closes #20250 )
Patch from Andrew Barnert.
12 years ago
Benjamin Peterson
c6b37e21f5
merge 3.3 ( #20246 )
12 years ago
Benjamin Peterson
fbf648ebba
complain when nbytes > buflen to fix possible buffer overflow ( closes #20246 )
12 years ago
Benjamin Peterson
a51791aa94
fix refleak in the error case
12 years ago
Larry Hastings
8666e65206
Issue #20228 : Argument Clinic now has special support for class special
methods.
12 years ago
Larry Hastings
4a55fc5a9d
Issue #20214 : Fixed a number of small issues and documentation errors in
Argument Clinic (see issue for details).
12 years ago
Benjamin Peterson
463753831c
fix build when SCHED_SPORADIC is defined ( closes #20217 )
12 years ago
Antoine Pitrou
2f7c31678a
Remove conditional: it is useless at this point (OpenSSL headers are not yet included)
12 years ago
Antoine Pitrou
cd3d7cabef
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
12 years ago
Benjamin Peterson
21e7d4cd5e
fix zipimport ref leak
12 years ago
Victor Stinner
57ddf78b6b
Issue #20113 : os.readv() and os.writev() now raise an OSError exception on
error instead of returning -1.
12 years ago
Gregory P. Smith
2bcbc14117
Fixes Issue #19081 : When a zipimport .zip file in sys.path being imported from
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).
12 years ago
Larry Hastings
df7c22b25b
Issue #19723 : Missed one conversion to the new Argument Clinic syntax.
12 years ago
Brett Cannon
b05cbe61b3
Issue #12837 : Silence a Clang compiler warning on OS X.
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.
12 years ago
Larry Hastings
61272b77b0
Issue #19273 : The marker comments Argument Clinic uses have been changed
to improve readability.
12 years ago
Larry Hastings
77561cccb2
Issue #20141 : Improved Argument Clinic's support for the PyArg_Parse "O!"
format unit.
12 years ago
Larry Hastings
16c5191ab3
Issue #20144 : Argument Clinic now supports simple constants as parameter
default values. inspect.Signature correspondingly supports them in
__text_signature__ fields for builtins.
12 years ago
Larry Hastings
3f144c2ad7
Issue #20142 : Py_buffer variables generated by Argument Clinic are now
initialized with a default value.
12 years ago
Stefan Krah
0455c3fd28
Whitespace.
12 years ago
Larry Hastings
78cf85c669
Issue #19659 : Added documentation for Argument Clinic.
12 years ago
Larry Hastings
3cceb38486
Issue #19976 : Argument Clinic METH_NOARGS functions now always
take two parameters.
12 years ago