summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
AgeCommit message (Collapse)AuthorLines
2016-08-25Issue 19504: Change "customise" to "customize" American spelling.Raymond Hettinger-2/+2
2016-08-25Use Py_ssize_t type for number of argumentsVictor Stinner-1/+1
Issue #27848: use Py_ssize_t rather than C int for the number of function positional and keyword arguments.
2016-08-24Issue #27809: map_next() uses fast callVictor Stinner-15/+31
Use a small stack allocated in the C stack for up to 5 iterator functions, otherwise allocates a stack on the heap memory.
2016-08-24Backed out changeset 70f88b097f60 (map_next)Victor Stinner-31/+15
2016-08-23Issue #27809: map_next() uses fast callVictor Stinner-15/+31
Use a small stack allocated in the C stack for up to 5 iterator functions, otherwise allocates a stack on the heap memory.
2016-08-23Issue #27809: builtin___build_class__() uses fast callVictor Stinner-6/+2
2016-08-22Issue #27809: Use _PyObject_FastCallDict()Victor Stinner-10/+2
Modify: * init_subclass() * builtin___build_class__() Fix also a bug in init_subclass(): check for super() failure.
2016-08-22Issue #27809: Use _PyObject_FastCallDict()Victor Stinner-10/+5
Modify: * builtin_sorted() * classmethoddescr_call() * methoddescr_call() * wrapperdescr_call()
2016-07-07- Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka-59/+58
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka-59/+58
generated by Argument Clinic. Patch by Petr Viktorin.
2016-06-18Issue #27342: Replaced some Py_XDECREFs with Py_DECREFs.Serhiy Storchaka-2/+2
Patch by Xiang Zhang.
2016-05-05Restored parameter name "self" since gdb needs exact specific parameter names.Serhiy Storchaka-2/+3
2016-05-02Got rid of redundand "self" parameter declarations.Serhiy Storchaka-3/+2
Argument Clinic is now able to infer all needed information.
2016-05-01Regenerate Argument Clinic code for issue #26874.Serhiy Storchaka-1/+1
2016-05-01Regenerate Argument Clinic code for issue #26874.Serhiy Storchaka-1/+1
2016-04-28Closes #26874: Merge with 3.5Zachary Ware-1/+1
2016-04-28Issue #26874: Simplify the divmod docstringZachary Ware-1/+1
2016-04-28Closes #26874: Merge with 3.5Zachary Ware-1/+1
2016-04-28Issue #26874: Fix divmod docstringZachary Ware-1/+1
2016-04-13Issue #26057: Got rid of nonneeded use of PyUnicode_FromObject().Serhiy Storchaka-3/+2
2015-11-07Issue #24802: Merge null termination fixes from 3.5Martin Panter-16/+32
2015-11-07Issue #24802: Merge null termination fixes from 3.4 into 3.5Martin Panter-16/+32
2015-11-07Issue #24802: Copy bytes-like objects to null-terminated buffers if necessaryMartin Panter-16/+32
This avoids possible buffer overreads when int(), float(), compile(), exec() and eval() are passed bytes-like objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch by John Leitch, Serhiy Storchaka and Martin Panter.
2015-10-10Issue #24402: Merge input() fix from 3.5Martin Panter-1/+3
2015-10-10Issue #24402: Merge input() fix from 3.4 into 3.5Martin Panter-1/+3
2015-10-10Issue #24402: Fix input() when stdout.fileno() fails; diagnosed by EryksunMartin Panter-1/+3
Also factored out some test cases into a new PtyTests class.
2015-10-09Hoist constant expression out of the inner loop.Raymond Hettinger-3/+3
2015-10-09Make comparison more consistentRaymond Hettinger-1/+1
2015-08-18Use PyTuple_GET_SIZE like the adjacent code does.Raymond Hettinger-1/+1
2015-08-18Inline PyIter_Next() matching the other itertools code.Raymond Hettinger-1/+2
2015-05-30Specify default values of semantic booleans in Argument Clinic generated ↵Serhiy Storchaka-4/+4
signatures as booleans.
2015-05-30Use converter names instead of format units in Argument Clinic descriptionsSerhiy Storchaka-72/+72
in builtin and _crypt modules.
2015-04-14Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings-14/+22
2015-04-03Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka-684/+31
2015-03-18Initialize variables to prevent GCC warningsVictor Stinner-1/+1
2015-02-03Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka-14/+22
and PyObject_AsWriteBuffer().
2015-02-03Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka-13/+21
and PyObject_AsWriteBuffer().
2014-09-06Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka-2/+2
argument contains not permitted null character or byte.
2014-08-17Issue #20184: Add signature introspection for 30 of the builtinsNick Coghlan-372/+1187
Also adds a test to test_inspect to track progress on builtin introspection support, to ensure it doesn't regress in the future.
2014-08-15Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner-1/+1
warnings in the Python/ subdirectory.
2014-08-05Issue #22146: Fix typo in __build_class__ error messageZachary Ware-1/+1
2014-06-16Issue #19362: Tweek len() doc and docstring to expand the indicated range ofTerry Jan Reedy-1/+1
arguments. Original patch by Gareth Rees.
2014-05-19Issue 20620: Update the min()/max() docs for the new default argument.Raymond Hettinger-6/+10
Patch provided by Berker Peksag.
2014-04-18correct len signature in docstring (closes #21294)Benjamin Peterson-1/+1
2014-01-24Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings-1/+1
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.
2013-12-06merge 3.3 (#19910)Benjamin Peterson-1/+1
2013-12-06document that compile() can take bytes (closes #19910)Benjamin Peterson-1/+1
2013-11-24Issue #3158: doctest can now find doctests in functions and methodsZachary Ware-3/+15
written in C. As a part of this, a few doctests have been added to the builtins module (on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all platforms) on float, and test_builtins now runs doctests in builtins.
2013-11-07Issue #19512, #19515: remove shared identifiers, move identifiers where theyVictor Stinner-13/+15
are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
2013-11-07Issue #19512: builtin print() function uses an identifier instead of literalVictor Stinner-1/+2
string "flush" to call the flush method