- 01 Nov, 2017 4 commits
-
-
Serhiy Storchaka authored
-
Lars Viklund authored
Replace occurence of nested comments in blake2 reference implementation with preprocessor directive for disabling unused code. `blake2s-load-xop.h` is conditionally pulled in only on chips with XOP support, among others the AMD Bulldozer. The malformed comments in the source file breaks the build of `hashlib`'s `_blake2` on GCC 6.3.0. Official reference code on github uses `#if` so this change should be uncontroversial.
-
Masayuki Yamamoto authored
Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad().
-
Victor Stinner authored
bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI.
-
- 31 Oct, 2017 11 commits
-
-
Victor Stinner authored
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.
-
Victor Stinner authored
Document the following functions: * PyObject_Malloc() * PyObject_Calloc() * PyObject_Realloc() * PyObject_Free() Fix also PyMem_RawFree() documentation.
-
Serhiy Storchaka authored
* Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X.
-
Victor Stinner authored
-
Victor Stinner authored
Write the name of each subtest on a new line to help debugging when a test does crash Python.
-
Serhiy Storchaka authored
bpo-31897: Convert unexpected errors when read bogus binary plists into InvalidFileException. (#4171)
-
Serhiy Storchaka authored
Removed a code that incorrectly detected in-place resizing in realloc() and wrote to freed memory.
-
Serhiy Storchaka authored
* Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects.
-
Serhiy Storchaka authored
-
Victor Stinner authored
test_curses now saves/restores signals. On FreeBSD, the curses module sets handlers of some signals, but don't restore old handlers when the module is deinitialized.
-
Alex Gaynor authored
-
- 30 Oct, 2017 2 commits
-
-
Pablo Galindo authored
Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code..
-
Quentin Dawans authored
-
- 28 Oct, 2017 4 commits
-
-
Serhiy Storchaka authored
separators that are not bytes-like objects.
-
Terry Jan Reedy authored
-
Terry Jan Reedy authored
Editor and output windows only see an empty last prompt line. This simplifies the code and fixes a minor bug when newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is not set or changed.
-
Serhiy Storchaka authored
Changes persist while IDLE remains open
-
- 27 Oct, 2017 9 commits
-
-
Victor Stinner authored
Use the _PyTime_t type rather than double for the faulthandler timeout in dump_traceback_later(). This change should fix the following Coverity warning: CID 1420311: Incorrect expression (UNINTENDED_INTEGER_DIVISION) Dividing integer expressions "9223372036854775807LL" and "1000LL", and then converting the integer quotient to type "double". Any remainder, or fractional part of the quotient, is ignored. if ((timeout * 1e6) >= (double) PY_TIMEOUT_MAX) { The warning comes from (double)PY_TIMEOUT_MAX with: #define PY_TIMEOUT_MAX (PY_LLONG_MAX / 1000)
-
Serhiy Storchaka authored
-
Erik Bray authored
Remove dangling references to PYCC_VACPP that are not relelvant since removal of OS/2 support.
-
Utkarsh Upadhyay authored
This is a fix to the documentation to reflect the changes merged in as part of bpo-30302.
-
Erik Bray authored
-
Erik Bray authored
Only declaring these as interns inside the CLI's main C module caused build problems on some platforms (notably Cygwin), so this switches them to a regular underscore prefixed "private" C API declaration.
-
Arthur Darcet authored
-
Lovesh Harchandani authored
TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed.
-
cocoatomo authored
-
- 26 Oct, 2017 10 commits
-
-
Ivan Levkivskyi authored
Lexically first global and nonlocal syntax errors at given scope should be detected first.
-
Alexander Belopolsky authored
Patch by Mark Gollahon.
-
Vitor Pereira authored
-
Serhiy Storchaka authored
-
xdegaye authored
-
Ammar Askar authored
-
Serhiy Storchaka authored
BytesWarning no longer emitted when the fromlist argument of __import__() or the __all__ attribute of the module contain bytes instances.
-
Benjamin Peterson authored
We stop support this OS in 2007 with commit 19fab761. Let's finish.
-
pdox authored
-
Mario Corchero authored
Add support to strptime to parse time offsets with a colon between the hour and the minutes.
-