summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-245-177/+269
| | | | | | 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.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-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-161-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.
| * Issue #17576: Removed deprecation warnings added in changeset 618cca51a27e.Serhiy Storchaka2013-12-142-18/+0
| |
* | Fix minor bug in dict.__contains__ docstring.Meador Inge2014-01-141-3/+3
| | | | | | | | | | When dict got clinicized in 8fde1a2c94dc for Issue #16612 an erroneous trailing quote was left in the clinic docstring summary line.
* | Fix typo in comment.Eric V. Smith2014-01-141-1/+1
| |
* | Issue19995: fixed typo; switched from test.support.check_warnings to assertWarnsEthan Furman2014-01-121-2/+2
| |
* | Issue19995: issue deprecation warning for non-integer values to %c, %o, %x, %XEthan Furman2014-01-121-2/+27
| |
* | Issue #19273: The marker comments Argument Clinic uses have been changedLarry Hastings2014-01-072-12/+12
| | | | | | | | to improve readability.
* | Add comments to frozenset_hash().Raymond Hettinger2014-01-051-1/+14
| | | | | | | | Also, provide a minor hint to the compiler on how to group the xors.
* | Issue19995: %o, %x, %X now only accept intsEthan Furman2014-01-051-8/+27
| |
* | Reverted changeset b72c5573c5e7 (issue #15027).Serhiy Storchaka2014-01-042-128/+61
| |
* | Issue #15027: Rewrite the UTF-32 encoder. It is now 1.6x to 3.5x faster.Serhiy Storchaka2014-01-042-61/+128
| |
* | Remove deadcode (HASH macro is no more defined)Victor Stinner2014-01-031-1/+0
| |
* | Remove now unused variablesVictor Stinner2014-01-031-5/+0
| |
* | unicode_char() uses get_latin1_char() to get latin1 singleton charactersVictor Stinner2014-01-031-0/+3
| |
* | add unicode_char() in unicodeobject.c to factorize codeVictor Stinner2014-01-031-55/+31
| |
* | Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-6/+0
| |
* | Better assertion in PyObject_Call() to detect functions returning a result withVictor Stinner2013-12-191-1/+2
| | | | | | | | an exception set (invalid state).
* | Minor code clean-up. Keep the C-API all in one section.Raymond Hettinger2013-12-151-3/+3
| |
* | (Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError ifVictor Stinner2013-12-131-3/+16
|\ \ | |/ | | | | "%c" argument is not in range [0; 255].
| * Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c"Victor Stinner2013-12-131-3/+16
| | | | | | | | argument is not in range [0; 255].
| * Issue #14432: Generator now clears the borrowed reference to the thread stateVictor Stinner2013-12-131-0/+3
| | | | | | | | | | | | | | Fix a crash when a generator is created in a C thread that is destroyed while the generator is still used. The issue was that a generator contains a frame, and the frame kept a reference to the Python state of the destroyed C thread. The crash occurs when a trace function is setup.
* | Issue #14432: Remove the thread state field from the frame structure. Fix aVictor Stinner2013-12-131-1/+0
| | | | | | | | | | | | | | crash when a generator is created in a C thread that is destroyed while the generator is still used. The issue was that a generator contains a frame, and the frame kept a reference to the Python state of the destroyed C thread. The crash occurs when a trace function is setup.
* | Issue #17576: Deprecation warning emitted now when __int__() or __index__()Serhiy Storchaka2013-12-112-160/+147
|\ \ | |/ | | | | | | return not int instance. Introduced _PyLong_FromNbInt() and refactored PyLong_As*() functions.
| * Issue #17576: Deprecation warning emitted now when __int__() or __index__()Serhiy Storchaka2013-12-112-160/+147
| | | | | | | | | | return not int instance. Introduced _PyLong_FromNbInt() and refactored PyLong_As*() functions.
* | Silence expression result unused warnings with clang.Christian Heimes2013-12-047-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | The PyObject_INIT() macros returns obj: ../cpython/Objects/methodobject.c:32:23: warning: expression result unused [-Wunused-value] PyObject_INIT(op, &PyCFunction_Type); ^~ ../cpython/Include/objimpl.h:139:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ 1 warning generated.
* | Issue #6477: Merge with 3.3.Alexandre Vassalotti2013-12-011-6/+6
|\ \ | |/
| * Issue #6477: Keep PyNotImplemented_Type and PyNone_Type private.Alexandre Vassalotti2013-12-011-6/+6
| |
* | Issue #6477: Merge with 3.3.Alexandre Vassalotti2013-12-011-2/+2
|\ \ | |/
| * Issue #6477: Added support for pickling the types of built-in singletons.Alexandre Vassalotti2013-12-011-2/+2
| |
* | Issue #19088: Merge with 3.3.Alexandre Vassalotti2013-11-301-17/+20
|\ \ | |/
| * Issue #19088: Fix incorrect caching of the copyreg module.Alexandre Vassalotti2013-11-301-17/+20
| | | | | | | | This fix does not cause any degradation in performance.
| * fix format spec recursive expansion (closes #19729)Benjamin Peterson2013-11-271-2/+4
| |
* | Remove an errant extra \ within a docstring.Gregory P. Smith2013-11-251-1/+1
|\ \ | |/
| * Remove an errant extra \ within a docstring.Gregory P. Smith2013-11-251-1/+1
| |
* | mergeRaymond Hettinger2013-11-241-5/+9
|\ \ | |/
| * Document that @property can incorporate a docstring from the getter method. ↵Raymond Hettinger2013-11-241-5/+9
| | | | | | | | Improve readabilty with additional whitespace.
* | Make Ellipsis and NotImplemented picklable through the reduce protocol.Alexandre Vassalotti2013-11-242-2/+24
| |
* | Make built-in methods picklable through the reduce protocol.Alexandre Vassalotti2013-11-241-1/+21
| |
* | Issue #3158: doctest can now find doctests in functions and methodsZachary Ware2013-11-241-1/+1
| | | | | | | | | | | | | | | | 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 #19674: inspect.signature() now produces a correct signatureLarry Hastings2013-11-233-14/+81
| | | | | | | | for some builtins.
* | Issue #19730: Argument Clinic now supports all the existing PyArgLarry Hastings2013-11-231-5/+5
| | | | | | | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
* | Issue #17810: Fixed NULL check in _PyObject_GetItemsIter()Christian Heimes2013-11-231-1/+1
| | | | | | | | CID 1131948: Logically dead code (DEADCODE)
* | Issue #17810: Implement PEP 3154, pickle protocol 4.Antoine Pitrou2013-11-233-99/+438
| | | | | | | | Most of the work is by Alexandre.
* | Implement PEP 451 (ModuleSpec).Eric Snow2013-11-221-48/+5
| |
* | Issue #19619: Blacklist non-text codecs in method APINick Coghlan2013-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | str.encode, bytes.decode and bytearray.decode now use an internal API to throw LookupError for known non-text encodings, rather than attempting the encoding or decoding operation and then throwing a TypeError for an unexpected output type. The latter mechanism remains in place for third party non-text encodings.
* | Close #19568: Fix bytearray_setslice_linear(), fix handling ofVictor Stinner2013-11-211-37/+63
| | | | | | | | | | | | | | | | | | | | PyByteArray_Resize() failure: leave the bytearray object in an consistent state. If growth < 0, handling the memory allocation failure is tricky here because the bytearray object has already been modified. If lo != 0, the operation is completed, but a MemoryError is still raised and the memory block is not shrinked. If lo == 0, the bytearray is restored in its previous state and a MemoryError is raised.
* | Close #19578: Fix list_ass_subscript(), handle list_resize() failureVictor Stinner2013-11-211-2/+3
| | | | | | | | Notify the caller of the failure (MemoryError exception).
* | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes2013-11-204-181/+4
| | | | | | | | Python now uses SipHash24 on all major platforms.