| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| | |
CID 1058280
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| |
| | |
CID 1058288
Fix declaration-after-statement of d49f65ff4f3c
|
| | |
|
| |
| |
| |
| | |
CID 1058288
|
|\ \
| |/
| |
| |
| |
| | |
CID 1058280
CID 1058282
CID 1058284
|
| |
| |
| |
| |
| |
| | |
CID 1058280
CID 1058282
CID 1058284
|
|\ \
| |/
| |
| | |
CID 486659
|
| |
| |
| |
| | |
CID 486659
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add new enum:
* PyMemAllocatorDomain
Add new structures:
* PyMemAllocator
* PyObjectArenaAllocator
Add new functions:
* PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree()
* PyMem_GetAllocator(), PyMem_SetAllocator()
* PyObject_GetArenaAllocator(), PyObject_SetArenaAllocator()
* PyMem_SetupDebugHooks()
Changes:
* PyMem_Malloc()/PyObject_Realloc() now always call malloc()/realloc(), instead
of calling PyObject_Malloc()/PyObject_Realloc() in debug mode.
* PyObject_Malloc()/PyObject_Realloc() now falls back to
PyMem_Malloc()/PyMem_Realloc() for allocations larger than 512 bytes.
* Redesign debug checks on memory block allocators as hooks, instead of using C
macros
|
| |
| |
| |
| |
| |
| | |
allocators
The new API require more discussion.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add a new PyMemAllocators structure
* New functions:
- PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree(): GIL-free memory
allocator functions
- PyMem_GetRawAllocators(), PyMem_SetRawAllocators()
- PyMem_GetAllocators(), PyMem_SetAllocators()
- PyMem_SetupDebugHooks()
- _PyObject_GetArenaAllocators(), _PyObject_SetArenaAllocators()
* Add unit test for PyMem_Malloc(0) and PyObject_Malloc(0)
* Add unit test for new get/set allocators functions
* PyObject_Malloc() now falls back on PyMem_Malloc() instead of malloc() if
size is bigger than SMALL_REQUEST_THRESHOLD, and PyObject_Realloc() falls
back on PyMem_Realloc() instead of realloc()
* PyMem_Malloc() and PyMem_Realloc() now always call malloc() and realloc(),
instead of calling PyObject_Malloc() and PyObject_Realloc() in debug mode
|
| |
| |
| |
| |
| |
| | |
(closes #17206)
A patch from Illia Polosukhin.
|
| | |
|
|/
|
|
| |
code points bigger than U+10ffff
|
| |
|
| |
|
|
|
|
| |
that occasionally uses doubles.
|
|
|
|
|
| |
for "parity" between PyArg_ParseTuple() and the Python/getargs.c static
function skipitem() for all possible "format units".
|
| |
|
| |
|
|
|
|
| |
Patch by Stefan Behnel.
|
|
|
|
|
|
| |
They're optional-only for now (unlike in pure Python) but that's all
I needed. The syntax can easily be relaxed if we want to support
required keyword-only arguments for extension types in the future.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
timeval or timespec
time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(),
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
raises an OverflowError, instead of a ValueError, if the timestamp does not fit
in time_t.
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
round microseconds towards zero instead of rounding to nearest with ties going
away from zero.
|
|
|
|
| |
Add a private API to convert an int or float to a C timespec structure.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and lifetime issues of dynamically allocated Py_buffer members (#9990)
as well as crashes (#8305, #7433). Many new features have been added
(See whatsnew/3.3), and the documentation has been updated extensively.
The ndarray test object from _testbuffer.c implements all aspects of
PEP-3118, so further development towards the complete implementation
of the PEP can proceed in a test-driven manner.
Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review
and many ideas.
- Issue #12834: Fix incorrect results of memoryview.tobytes() for
non-contiguous arrays.
- Issue #5231: Introduce memoryview.cast() method that allows changing
format and shape without making a copy of the underlying memory.
|
| |
|
|\
| |
| |
| | |
(prelude to issue #6531).
|
| |
| |
| |
| | |
(prelude to issue #6531).
|
| |
| |
| |
| |
| | |
* Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII()
* Remove the unused "e" variable in replace()
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88550 | antoine.pitrou | 2011-02-24 21:50:49 +0100 (jeu., 24 févr. 2011) | 4 lines
Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer with
a buffer struct having a NULL data pointer.
........
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Test the following functions:
* codecs.raw_unicode_escape_decode()
* PyUnicode_FromWideChar()
* PyUnicode_FromUnicode()
* "unicode_internal" and "unicode_escape" decoders
|
| |
| |
| |
| |
| | |
Add tests for PyUnicode_EncodeDecimal() and
PyUnicode_TransformDecimalToASCII().
|
| |
| |
| |
| | |
PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
|
| |
| |
| |
| | |
the deprecate Py_UNICODE type
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
PyLong_AsDouble() and PyLong_AsUnsignedLongLong() now raise TypeError (rather
than SystemError) when passed a non-integer argument, matching the behavior of
all the other PyLong_As*() functions.
|
| |
| |
| |
| |
| |
| |
| | |
As a side effect, this now allows the rjust, ljust and center methods of
bytes and bytearray to accept a bytearray argument.
Patch by Petri Lehtinen
|
| |
| |
| |
| |
| | |
PyOS_snprintf() to avoid temporary buffer allocated on the stack and a
conversion from bytes to Unicode.
|
| |
| |
| |
| | |
PyOS_snprintf().
|
|/
|
|
| |
a buffer struct having a NULL data pointer.
|
|
|
|
|
| |
Instead of _testcapi.format_unicode() because it has a limited API: it requires
exactly one argument of type unicode.
|
| |
|
|
|
|
| |
NULL
|
| |
|
| |
|
| |
|
|
|
|
|
| |
All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the
prototype for the new function PyUnicode_AsWideCharString().
|