summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22604: Fix assertion error in debug mode when dividing a complex ↵Antoine Pitrou2014-10-101-2/+6
|\ | | | | | | number by (nan+0j).
| * Issue #22604: Fix assertion error in debug mode when dividing a complex ↵Antoine Pitrou2014-10-101-2/+6
| | | | | | | | number by (nan+0j).
* | #16518: Bring error messages in harmony with docs ("bytes-like object")R David Murray2014-10-056-14/+11
| | | | | | | | | | | | | | | | | | | | Some time ago we changed the docs to consistently use the term 'bytes-like object' in all the contexts where bytes, bytearray, memoryview, etc are used. This patch (by Ezio Melotti) completes that work by changing the error messages that previously reported that certain types did "not support the buffer interface" to instead say that a bytes-like object is required. (The glossary entry for bytes-like object references the discussion of the buffer protocol in the docs.)
* | Closes #22540: speed up PyObject_IsInstance and PyObject_IsSubclass in the ↵Georg Brandl2014-10-031-0/+15
| | | | | | | | common case that the second argument has metaclass "type".
* | Fix "warning: comparison between signed and unsigned integer expressions"Gregory P. Smith2014-09-301-5/+5
| | | | | | | | | | | | -Wsign-compare warnings in unicodeobject.c. These were all a result of sizeof() being unsigned and being compared to a Py_ssize_t. Not actual problems.
* | merge 3.4 (#22520)Benjamin Peterson2014-09-301-11/+17
|\ \ | |/
| * merge 3.3 (#22520)Benjamin Peterson2014-09-301-11/+17
| |\
| | * prevent overflow in unicode_repr (closes #22520)Benjamin Peterson2014-09-301-11/+17
| | |
* | | merge 3.4Benjamin Peterson2014-09-291-1/+1
|\ \ \ | |/ /
| * | merge 3.3Benjamin Peterson2014-09-291-1/+1
| |\ \ | | |/
| | * these variables ought to be Py_ssize_tBenjamin Peterson2014-09-291-1/+1
| | |
* | | merge 3.4 (#22519)Benjamin Peterson2014-09-291-12/+16
|\ \ \ | |/ /
| * | merge 3.3 (closes #22519)Benjamin Peterson2014-09-291-12/+16
| |\ \ | | |/
| | * fix overflow checking in PyBytes_Repr (closes #22519)Benjamin Peterson2014-09-291-12/+16
| | |
* | | merge 3.4 (closes #22518)Benjamin Peterson2014-09-291-17/+47
|\ \ \ | |/ /
| * | merge 3.3 (closes #22518)Benjamin Peterson2014-09-291-17/+47
| |\ \ | | |/
| | * cleanup overflowing handling in unicode_decode_call_errorhandler and ↵Benjamin Peterson2014-09-291-18/+56
| | | | | | | | | | | | unicode_encode_ucs1 (closes #22518)
* | | Removed redundant casts to `char *`.Serhiy Storchaka2014-09-284-6/+6
| | | | | | | | | | | | Corresponding functions now accept `const char *` (issue #1772673).
* | | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-062-7/+7
| | | | | | | | | | | | argument contains not permitted null character or byte.
* | | Issue #22290: PyObject_Call() now fails with an assertion error when calledVictor Stinner2014-09-041-0/+5
| | | | | | | | | | | | | | | with an exception set. This new assertion helps to understand if the exception was already set before calling the function or raised by the function.
* | | use __qualname__ to compute bound method repr (closes #21389)Benjamin Peterson2014-08-201-30/+13
| | | | | | | | | | | | Patch from Steven Barker.
* | | Issue #22207: Fix "comparison between signed and unsigned integers" warning inVictor Stinner2014-08-172-4/+5
| | | | | | | | | | | | | | | test checking for integer overflow on Py_ssize_t type: cast explicitly to size_t.
* | | Optimize PyBytes_FromObject(): only overallocate when size=0 to not get theVictor Stinner2014-08-171-1/+3
| | | | | | | | | | | | empty string singleton
* | | Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner2014-08-155-12/+13
| | | | | | | | | | | | | | | | | | | | | warnings in the Objects/ subdirectory. PyType_FromSpecWithBases() and PyType_FromSpec() now reject explicitly negative slot identifiers.
* | | Issue #22116: C functions and methods (of the 'builtin_function_or_method' ↵Antoine Pitrou2014-08-061-1/+5
| | | | | | | | | | | | type) can now be weakref'ed. Patch by Wei Wu.
* | | Issue #22077: Improve index error messages for bytearrays, bytes, lists, andTerry Jan Reedy2014-08-024-6/+10
| | | | | | | | | | | | | | | tuples by adding 'or slices'. Added ', not <typename' for bytearrays. Original patch by Claudiu Popa.
* | | Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, renameVictor Stinner2014-08-011-4/+4
| | | | | | | | | | | | | | | ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions.
* | | Rerun AC, silence pointer conversion warnings.Martin v. Löwis2014-07-272-73/+102
| | |
* | | Issue #20179: Apply Argument Clinic to bytes and bytearray.Martin v. Löwis2014-07-273-557/+1867
| | | | | | | | | | | | Patch by Tal Einat.
* | | Issue #22082: Fix a compiler warning (function is not a prototype)Victor Stinner2014-07-271-2/+2
| | |
* | | Issue #22082: Clear interned strings in slotdefs.Martin v. Löwis2014-07-261-3/+17
| | |
* | | slotdefs is no longer sorted.Martin v. Löwis2014-07-261-1/+1
| | |
* | | unicodeobject.c: fix a compiler warning on Windows 64 bitsVictor Stinner2014-07-251-1/+2
| | |
* | | Issue #18093: Factor out the programs that embed the runtimeNick Coghlan2014-07-251-0/+1
| | |
* | | merge 3.4 (#22036)Benjamin Peterson2014-07-241-1/+1
|\ \ \ | |/ /
| * | s/stringobject/bytesobject/ (closes #22036)Benjamin Peterson2014-07-241-1/+1
| | | | | | | | | | | | Patch by Martin Matusiak.
* | | Issue #21938: simplify gen_iternext()Antoine Pitrou2014-07-081-5/+1
| | |
* | | Issue #21803: remove macro indirections in complexobject.hAntoine Pitrou2014-07-071-17/+17
| | |
* | | upgrade to unicode 7.0.0Benjamin Peterson2014-07-061-1121/+1591
| | |
* | | Issue #21897: Fix a crash with the f_locals attribute with closure variables ↵Antoine Pitrou2014-07-051-1/+1
|\ \ \ | |/ / | | | | | | when frame.clear() has been called.
| * | Issue #21897: Fix a crash with the f_locals attribute with closure variables ↵Antoine Pitrou2014-07-051-1/+1
| | | | | | | | | | | | when frame.clear() has been called.
* | | (Merge 3.4) Issue #21892, #21893: Partial revert of changeset 4f55e802baf0,Victor Stinner2014-07-041-18/+8
|\ \ \ | |/ / | | | | | | PyErr_Format() uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T
| * | Issue #21892, #21893: Partial revert of changeset 4f55e802baf0, PyErr_Format()Victor Stinner2014-07-041-18/+8
| | | | | | | | | | | | uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T
* | | (Merge 3.4) Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zuVictor Stinner2014-07-011-11/+23
|\ \ \ | |/ / | | | | | | to format C size_t, because %zi/%u is not supported on all platforms.
| * | Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format CVictor Stinner2014-07-011-11/+23
| | | | | | | | | | | | size_t, because %zi/%u is not supported on all platforms.
* | | merge 3.4Benjamin Peterson2014-06-271-9/+6
|\ \ \ | |/ /
| * | use NULL not 0Benjamin Peterson2014-06-271-9/+6
| | |
* | | Issue #21205: Add a new ``__qualname__`` attribute to generator, the qualifiedVictor Stinner2014-06-161-15/+75
| | | | | | | | | | | | | | | | | | | | | name, and use it in the representation of a generator (``repr(gen)``). The default name of the generator (``__name__`` attribute) is now get from the function instead of the code. Use ``gen.gi_code.co_name`` to get the name of the code.
* | | Merge issue #21669 from 3.4Nick Coghlan2014-06-161-0/+135
|\ \ \ | |/ /
| * | Issue #21669: Special case print & exec syntax errorsNick Coghlan2014-06-161-0/+135
| | |