Victor Stinner
049e509a9f
Issue #22207 : Fix "comparison between signed and unsigned integers" warning in
test checking for integer overflow on Py_ssize_t type: cast explicitly to
size_t.
12 years ago
Victor Stinner
88d146b7b9
Optimize PyBytes_FromObject(): only overallocate when size=0 to not get the
empty string singleton
12 years ago
Victor Stinner
12174a5dca
Issue #22156 : Fix "comparison between signed and unsigned integers" compiler
warnings in the Objects/ subdirectory.
PyType_FromSpecWithBases() and PyType_FromSpec() now reject explicitly negative
slot identifiers.
12 years ago
Antoine Pitrou
b349e4c929
Issue #22116 : C functions and methods (of the 'builtin_function_or_method' type) can now be weakref'ed. Patch by Wei Wu.
12 years ago
Terry Jan Reedy
ffff1440d1
Issue #22077 : Improve index error messages for bytearrays, bytes, lists, and
tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
Original patch by Claudiu Popa.
12 years ago
Victor Stinner
f6a271ae98
Issue #18395 : Rename ``_Py_char2wchar()`` to func:`Py_DecodeLocale`, rename
``_Py_wchar2char()`` to func:`Py_EncodeLocale`, and document these
functions.
12 years ago
Martin v. Löwis
0efea322a9
Rerun AC, silence pointer conversion warnings.
12 years ago
Martin v. Löwis
7252a6e81e
Issue #20179 : Apply Argument Clinic to bytes and bytearray.
Patch by Tal Einat.
12 years ago
Victor Stinner
331a726b38
Issue #22082 : Fix a compiler warning (function is not a prototype)
12 years ago
Martin v. Löwis
996b671446
Issue #22082 : Clear interned strings in slotdefs.
12 years ago
Martin v. Löwis
5b5615006c
slotdefs is no longer sorted.
12 years ago
Victor Stinner
e1f17c6c0b
unicodeobject.c: fix a compiler warning on Windows 64 bits
12 years ago
Nick Coghlan
973fe0ba7a
Issue #18093 : Factor out the programs that embed the runtime
12 years ago
Benjamin Peterson
1cc9520327
s/stringobject/bytesobject/ ( closes #22036 )
Patch by Martin Matusiak.
12 years ago
Antoine Pitrou
667f545e03
Issue #21938 : simplify gen_iternext()
12 years ago
Antoine Pitrou
1eee8e5207
Issue #21803 : remove macro indirections in complexobject.h
12 years ago
Benjamin Peterson
3032ed7cb1
upgrade to unicode 7.0.0
12 years ago
Antoine Pitrou
acc8cf2cfa
Issue #21897 : Fix a crash with the f_locals attribute with closure variables when frame.clear() has been called.
12 years ago
Victor Stinner
a33bce0945
Issue #21892 , #21893 : Partial revert of changeset 4f55e802baf0, PyErr_Format()
uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T
12 years ago
Victor Stinner
293f3f526d
Closes #21892 , #21893 : Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C
size_t, because %zi/%u is not supported on all platforms.
12 years ago
Benjamin Peterson
1791c224dd
use NULL not 0
12 years ago
Victor Stinner
40ee30181f
Issue #21205 : Add a new ``__qualname__`` attribute to generator, the qualified
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.
12 years ago
Nick Coghlan
5b1fdc1e37
Issue #21669 : Special case print & exec syntax errors
12 years ago
Victor Stinner
2bc4d95bb6
Issue #21233 : Revert bytearray(int) optimization using calloc()
12 years ago
Victor Stinner
d8f0d922d5
Issue #21233 : Rename the C structure "PyMemAllocator" to "PyMemAllocatorEx" to
make sure that the code using it will be adapted for the new "calloc" field
(instead of crashing).
12 years ago
Victor Stinner
5a1bb4e080
Initialize base types before child types
object (PyBaseObject_Type) is the base type of type (PyType_Type), int
(PyLong_Type) is the base type of bool (PyBool_Type).
12 years ago
Raymond Hettinger
426d9958a2
Add development comments to setobject.c
12 years ago
Stefan Krah
bcaf5999e6
Issue #20186 : memoryobject.c: add function signatures.
12 years ago
Victor Stinner
45e8e2f218
Issue #21490 : Add new C macros: Py_ABS() and Py_STRINGIFY()
Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between
pyconfig.h and pymacros.h.
12 years ago
Victor Stinner
1c6970fac9
Issue #21418 : Fix a crash in the builtin function super() when called without
argument and without current frame (ex: embedded Python).
12 years ago
Zachary Ware
bca9694ac1
Issue #21442 : Fix MSVC compiler warning introduced by issue21377.
12 years ago
Victor Stinner
3080d926af
Issue #21233 : Fix _PyObject_Alloc() when compiled with WITH_VALGRIND defined
12 years ago
Raymond Hettinger
4b74fba62f
Issue 21101: Internal API for dict getitem and setitem where the hash value is known.
12 years ago
Victor Stinner
af8fc645af
Issue #21233 : Oops, Fix _PyObject_Alloc(): initialize nbytes before going to
redirect.
12 years ago
Victor Stinner
db067af12a
Issue #21233 : Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now
using ``calloc()`` instead of ``malloc()`` for large objects which is faster
and use less memory (until the bytearray buffer is filled with data).
12 years ago
Antoine Pitrou
161d695fb0
Issue #21377 : PyBytes_Concat() now tries to concatenate in-place when the first argument has a reference count of 1.
Patch by Nikolaus Rath.
12 years ago
Benjamin Peterson
027ce16691
sprinkle some _PyId goodness around moduleobject.c
12 years ago
Benjamin Peterson
1184e266b9
do not override errors from descriptors on modules
12 years ago
Ethan Furman
7b9ff0e6da
Issue8297: module attribute lookup failures now include module name in error message.
12 years ago
Zachary Ware
715ef02ddc
Fix a typo in the docstring of nb_index.
12 years ago
Zachary Ware
ea42b4cc80
Fix a typo in the signature for object.__ge__
12 years ago
Mark Dickinson
0c346d827d
Issue #21193 : Make (e.g.,) pow(2, -3, 5) raise ValueError rather than TypeError. Patch by Josh Rosenberg.
12 years ago
Benjamin Peterson
d51374ed78
PEP 465: a dedicated infix operator for matrix multiplication ( closes #21176 )
12 years ago
Victor Stinner
4dd25256e2
Issue #21118 : PyLong_AS_LONG() result type is long
Even if PyLong_AS_LONG() cannot fail, I prefer to use the right type.
12 years ago
Benjamin Peterson
1365de764e
fix reference leaks in the translate fast path ( closes #21175 )
Patch by Josh Rosenberg.
12 years ago
Victor Stinner
872b291b96
Issue #21118 : Optimize also str.translate() for ASCII => ASCII deletion
12 years ago
Victor Stinner
4ff33af257
Issue #21118 : Add unit test for invalid character replacement (code point higher than U+10ffff)
12 years ago
Victor Stinner
89a76abf20
Issue #21118 : Optimize str.translate() for ASCII => ASCII translation
12 years ago
Victor Stinner
8a4422e78d
Issue #21118 : Remove unused variable
12 years ago
Victor Stinner
69598d4ccf
Issue #21118 : Fix _PyUnicodeTranslateError_Create(), add missing format
character for the "end" parameter
12 years ago