- 22 Şub, 2018 1 kayıt (commit)
-
-
Paul Ganssle yazdı
-
- 25 Ock, 2018 1 kayıt (commit)
-
-
Paul Ganssle yazdı
-
- 24 Ock, 2018 1 kayıt (commit)
-
-
Paul Ganssle yazdı
* Add timezone to datetime C API * Add documentation for timezone C API macros * Add dedicated tests for datetime type check macros * Remove superfluous C API test * Drop support for TimeZoneType in datetime C API * Expose UTC singleton to the datetime C API * Update datetime C-API documentation to include links * Add reference count information for timezone constructors
-
- 23 Ock, 2018 1 kayıt (commit)
-
-
Yury Selivanov yazdı
-
- 17 Ock, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
-
- 04 Ock, 2018 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 16 Ara, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Based on tests from #4878
-
- 29 Kas, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Fix _PyMem_SetupAllocators("debug"): always restore allocators to the defaults, rather than only caling _PyMem_SetupDebugHooks(). * Add _PyMem_SetDefaultAllocator() helper to set the "default" allocator. * Add _PyMem_GetAllocatorsName(): get the name of the allocators * main() now uses debug hooks on memory allocators if Py_DEBUG is defined, rather than calling directly malloc() * Document default memory allocators in C API documentation * _Py_InitializeCore() now fails with a fatal user error if PYTHONMALLOC value is an unknown memory allocator, instead of failing with a fatal internal error. * Add new tests on the PYTHONMALLOC environment variable * Add support.with_pymalloc() * Add the _testcapi.WITH_PYMALLOC constant and expose it as support.with_pymalloc(). * sysconfig.get_config_var('WITH_PYMALLOC') doesn't work on Windows, so replace it with support.with_pymalloc(). * pythoninfo: add _testcapi collector for pymem
-
- 11 Kas, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 02 Kas, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
Add new time functions: * time.clock_gettime_ns() * time.clock_settime_ns() * time.monotonic_ns() * time.perf_counter_ns() * time.process_time_ns() * time.time_ns() Add new _PyTime functions: * _PyTime_FromTimespec() * _PyTime_FromNanosecondsObject() * _PyTime_FromTimeval() Other changes: * Add also os.times() tests to test_os. * pytime_fromtimeval() and pytime_fromtimeval() now return _PyTime_MAX or _PyTime_MIN on overflow, rather than undefined behaviour * _PyTime_FromNanoseconds() parameter type changes from long long to _PyTime_t
-
- 31 Eki, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
Cleanup pymalloc: * Rename _PyObject_Alloc() to pymalloc_alloc() * Rename _PyObject_FreeImpl() to pymalloc_free() * Rename _PyObject_Realloc() to pymalloc_realloc() * pymalloc_alloc() and pymalloc_realloc() don't fallback on the raw allocator anymore, it now must be done by the caller * Add "success" and "failed" labels to pymalloc_alloc() and pymalloc_free() * pymalloc_alloc() and pymalloc_free() don't update num_allocated_blocks anymore: it should be done in the caller * _PyObject_Calloc() is now responsible to fill the memory block allocated by pymalloc with zeros * Simplify pymalloc_alloc() prototype * _PyObject_Realloc() now calls _PyObject_Malloc() rather than calling directly pymalloc_alloc() _PyMem_DebugRawAlloc() and _PyMem_DebugRawRealloc(): * document the layout of a memory block * don't increase the serial number if the allocation failed * check for integer overflow before computing the total size * add a 'data' variable to make the code easiler to follow test_setallocators() of _testcapimodule.c now test also the context.
-
- 26 Eki, 2017 1 kayıt (commit)
-
-
xdegaye yazdı
-
- 17 Eki, 2017 1 kayıt (commit)
-
-
Pablo Galindo yazdı
bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (#4003)
-
- 08 Eki, 2017 1 kayıt (commit)
-
-
Oren Milman yazdı
bpo-28280: Make PyMapping_Keys(), PyMapping_Values() and PyMapping_Items() always return a list (#3840)
-
- 06 Eki, 2017 1 kayıt (commit)
-
-
Masayuki Yamamoto yazdı
See PEP 539 for details. Highlights of changes: - Add Thread Specific Storage (TSS) API - Document the Thread Local Storage (TLS) API as deprecated - Update code that used TLS API to use TSS API
-
- 07 Eyl, 2017 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
* Remove Setup.config * Always define WITH_THREAD for compatibility.
-
- 29 Agu, 2017 1 kayıt (commit)
-
-
Oren Milman yazdı
-
- 10 Agu, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
The current test_child_terminated_in_stopped_state() function test creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and then crash (SIGSEGV). The problem is that calling os.waitpid() in the parent process is not enough to close the process: the child process remains alive and so the unit test leaks a child process in a strange state. Closing the child process requires non-trivial code, maybe platform specific. Remove the functional test and replaces it with an unit test which mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to test the WIFSTOPPED() path.
-
- 10 Tem, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
-
- 01 Tem, 2017 1 kayıt (commit)
-
-
xdegaye yazdı
-
- 20 Haz, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Make PyTraceMalloc_Track() and PyTraceMalloc_Untrack() functions public (remove the "_" prefix) * Remove the _PyTraceMalloc_domain_t type: use directly unsigned int. * Document methods Note: methods are already tested in test_tracemalloc.
-
- 09 Haz, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
Test C functions: * _PyObject_FastCall() * _PyObject_FastCallDict() * _PyObject_FastCallKeywords()
-
- 17 May, 2017 1 kayıt (commit)
-
-
Nathaniel J. Smith yazdı
If we have a chain of generators/coroutines that are 'yield from'ing each other, then resuming the stack works like: - call send() on the outermost generator - this enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - which calls send() on the next generator - which enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - ...etc. However, every time we enter _PyEval_EvalFrameDefault, the first thing we do is to check for pending signals, and if there are any then we run the signal handler. And if it raises an exception, then we immediately propagate that exception *instead* of starting to execute bytecode. This means that e.g. a SIGINT at the wrong moment can "break the chain" – it can be raised in the middle of our yield from chain, with the bottom part of the stack abandoned for the garbage collector. The fix is pretty simple: there's already a special case in _PyEval_EvalFrameEx where it skips running signal handlers if the next opcode is SETUP_FINALLY. (I don't see how this accomplishes anything useful, but that's another story.) If we extend this check to also skip running signal handlers when the next opcode is YIELD_FROM, then that closes the hole – now the exception can only be raised at the innermost stack frame. This shouldn't have any performance implications, because the opcode check happens inside the "slow path" after we've already determined that there's a pending signal or something similar for us to process; the vast majority of the time this isn't true and the new check doesn't run at all.
-
- 03 May, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 13 Nis, 2017 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 02 Mar, 2017 1 kayıt (commit)
-
-
orenmn yazdı
-
- 16 Şub, 2017 1 kayıt (commit)
-
-
INADA Naoki yazdı
-
- 23 Ock, 2017 2 kayıt (commit)
-
-
Serhiy Storchaka yazdı
possible but Coccinelle couldn't find opportunity.
-
Serhiy Storchaka yazdı
possible. Patch is writen with Coccinelle.
-
- 20 Ara, 2016 2 kayıt (commit)
-
-
Xiang Zhang yazdı
-
INADA Naoki yazdı
setattr() must not convert combined table into split table.
-
- 15 Ara, 2016 2 kayıt (commit)
-
-
Victor Stinner yazdı
Issue #28147: Fix a memory leak in split-table dictionaries: setattr() must not convert combined table into split table. Patch written by INADA Naoki. (grafted from 85be9dcc16a81d3ccd1f67b056255a7f206edd47)
-
Victor Stinner yazdı
Issue #28147: Fix a memory leak in split-table dictionaries: setattr() must not convert combined table into split table. Patch written by INADA Naoki.
-
- 06 Ara, 2016 1 kayıt (commit)
-
-
Victor Stinner yazdı
Replace: PyObject_CallObject(callable, NULL) with: _PyObject_CallNoArg(callable)
-
- 20 Kas, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
functions.
-
- 16 Kas, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
The latter function is more readable, faster and doesn't raise exceptions.
-
- 06 Kas, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
PyDict_GetItemWithError(). Patch by Xiang Zhang.
-
- 09 Eki, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Patch by Xiang Zhang.
-
- 08 Eki, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Patch by Xiang Zhang.
-
- 02 Eki, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Original patch by Xiang Zhang.
-