summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.5] bpo-8256: Fixed possible failing or crashing input() (#642)Serhiy Storchaka2017-03-121-5/+16
| | | | | | | if attributes "encoding" or "errors" of sys.stdin or sys.stdout are not set or are not strings. (cherry picked from commit c2cf12857187aa147c268651f10acd6da2c9cb74)
* Issue #26729: Fixed __text_signature__ for sorted().Serhiy Storchaka2017-01-231-1/+1
| | | | Patch by Erik Welch.
* Issue 27936: Fix inconsistent round() behavior between float and intRaymond Hettinger2016-09-031-1/+1
|
* Issue 19504: Change "customise" to "customize" American spelling.Raymond Hettinger2016-08-261-2/+2
|
* Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-59/+58
| | | | generated by Argument Clinic. Patch by Petr Viktorin.
* Regenerate Argument Clinic code for issue #26874.Serhiy Storchaka2016-05-011-1/+1
|
* Issue #26874: Simplify the divmod docstringZachary Ware2016-04-281-1/+1
|
* Issue #26874: Fix divmod docstringZachary Ware2016-04-281-1/+1
|
* Issue #24802: Merge null termination fixes from 3.4 into 3.5Martin Panter2015-11-071-16/+32
|\
| * Issue #24802: Copy bytes-like objects to null-terminated buffers if necessaryMartin Panter2015-11-071-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.
* | Issue #24402: Merge input() fix from 3.4 into 3.5Martin Panter2015-10-101-1/+3
|\ \ | |/
| * Issue #24402: Fix input() when stdout.fileno() fails; diagnosed by EryksunMartin Panter2015-10-101-1/+3
| | | | | | | | Also factored out some test cases into a new PtyTests class.
* | Specify default values of semantic booleans in Argument Clinic generated ↵Serhiy Storchaka2015-05-301-4/+4
| | | | | | | | signatures as booleans.
* | Use converter names instead of format units in Argument Clinic descriptionsSerhiy Storchaka2015-05-301-72/+72
| | | | | | | | in builtin and _crypt modules.
* | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-141-14/+22
| |
* | Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-684/+31
| |
* | Initialize variables to prevent GCC warningsVictor Stinner2015-03-181-1/+1
| |
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-021-14/+22
|\ \ | |/ | | | | and PyObject_AsWriteBuffer().
| * Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-021-13/+21
| | | | | | | | and PyObject_AsWriteBuffer().
* | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-061-2/+2
| | | | | | | | argument contains not permitted null character or byte.
* | Issue #20184: Add signature introspection for 30 of the builtinsNick Coghlan2014-08-171-373/+1188
| | | | | | | | | | Also adds a test to test_inspect to track progress on builtin introspection support, to ensure it doesn't regress in the future.
* | Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner2014-08-151-1/+1
|/ | | | warnings in the Python/ subdirectory.
* Issue #22146: Fix typo in __build_class__ error messageZachary Ware2014-08-051-1/+1
|
* Issue #19362: Tweek len() doc and docstring to expand the indicated range ofTerry Jan Reedy2014-06-161-1/+1
| | | | arguments. Original patch by Gareth Rees.
* Issue 20620: Update the min()/max() docs for the new default argument.Raymond Hettinger2014-05-191-6/+10
| | | | Patch provided by Berker Peksag.
* correct len signature in docstring (closes #21294)Benjamin Peterson2014-04-181-1/+1
|
* Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-241-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.
* merge 3.3 (#19910)Benjamin Peterson2013-12-071-1/+1
|\
| * document that compile() can take bytes (closes #19910)Benjamin Peterson2013-12-071-1/+1
| |
* | Issue #3158: doctest can now find doctests in functions and methodsZachary Ware2013-11-241-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.
* | Issue #19512, #19515: remove shared identifiers, move identifiers where theyVictor Stinner2013-11-071-13/+15
| | | | | | | | | | | | | | are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
* | Issue #19512: builtin print() function uses an identifier instead of literalVictor Stinner2013-11-061-1/+2
| | | | | | | | string "flush" to call the flush method
* | Issue #19512: __build_class() builtin now uses an identifier for the ↵Victor Stinner2013-11-061-2/+3
| | | | | | | | "metaclass" string
* | Issue #19512: add some common identifiers to only create common strings once,Victor Stinner2013-11-061-4/+4
| | | | | | | | | | | | | | instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter.
* | Issue #19512: eval() and exec() now use an identifier for "__builtins__" stringVictor Stinner2013-11-061-6/+7
| |
* | Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handleVictor Stinner2013-10-291-8/+9
| | | | | | | | | | exceptions when merging fast locals into f_locals of a frame. PyEval_GetLocals() now raises an exception and return NULL on failure.
* | Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-191-1/+1
| |
* | Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-1/+1
|\ \ | |/ | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-1/+1
| | | | | | | | error messages and comments.
* | Close #11619: The parser and the import machinery do not encode UnicodeVictor Stinner2013-08-261-8/+6
| | | | | | | | filenames anymore on Windows.
* | Issue #18560: Fix potential NULL pointer dereference in sum()Christian Heimes2013-07-261-0/+5
|\ \ | |/
| * Issue #18560: Fix potential NULL pointer dereference in sum()Christian Heimes2013-07-261-0/+5
| |
* | Issue #18408: handle PySys_GetObject() failure, raise a RuntimeErrorVictor Stinner2013-07-161-0/+5
| |
* | Merge: #18424: PEP8ify the tense of the sum docstring.R David Murray2013-07-101-2/+2
|\ \ | |/
| * #18424: PEP8ify the tense of the sum docstring.R David Murray2013-07-101-2/+2
| |
* | Issue 18111: Add a default argument to min() and max()Raymond Hettinger2013-06-251-14/+26
| |
* | rather than passing locals to the class body, just execute the class body in ↵Benjamin Peterson2013-05-161-1/+8
| | | | | | | | the proper environment
* | properly lookup the __round__ special method (closes #17722)Benjamin Peterson2013-04-131-14/+11
| |
* | Revert a premature patch for issue #14010 (changeset 846bd418aee5).Serhiy Storchaka2013-04-061-21/+9
|\ \ | |/
| * Revert a premature patch for issue #14010 (changeset aaaf36026511).Serhiy Storchaka2013-04-061-21/+9
| |