summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31917: Add 3 new clock identifiers (#4207)Victor Stinner2017-11-024-0/+60
| | | | | | | Add new clock identfiers: * time.CLOCK_BOOTTIME * time.CLOCK_PROF * time.CLOCK_UPTIME
* bpo-23699: Use a macro to reduce boilerplate code in rich comparison ↵stratakis2017-11-0216-316/+75
| | | | functions (GH-793)
* bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ↵Serhiy Storchaka2017-11-013-13/+37
| | | | (#4220)
* bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and ↵Serhiy Storchaka2017-11-013-2/+14
| | | | | | earlier. (#3826) Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7.
* [asyncio] bpo-30423: add regression test for orphan future causes ↵jimmylai2017-11-011-0/+16
| | | | | | | | "RuntimeError: Event loop stopped before Future completed." (#3295) * call remove_done_callback in finally section * [asyncio] bpo-30423 bug: add regression test for orphan future causes "RuntimeError: Event loop stopped before Future completed."
* bpo-31919: Fix building the curses module on OpenIndiana. (#4211)Serhiy Storchaka2017-11-015-11/+61
|
* Remove nested comments in blake2 (#4173)Lars Viklund2017-11-011-2/+4
| | | | | | | | | | | 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.
* bpo-25720: Fix the method for checking pad state of curses WINDOW (#4164)Masayuki Yamamoto2017-11-016-17/+90
| | | | | | | | | 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().
* Fix test_socket.test_create_connection() (#4206)Victor Stinner2017-11-011-0/+4
| | | | bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI.
* bpo-18835: Cleanup pymalloc (#4200)Victor Stinner2017-10-312-479/+565
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* bpo-20064: Document PyObject_Malloc() (#4199)Victor Stinner2017-10-311-1/+64
| | | | | | | | | | Document the following functions: * PyObject_Malloc() * PyObject_Calloc() * PyObject_Realloc() * PyObject_Free() Fix also PyMem_RawFree() documentation.
* bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (#4196)Serhiy Storchaka2017-10-311-4/+4
| | | | | * Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X.
* pythoninfo: add Py_DEBUG (#4198)Victor Stinner2017-10-311-0/+8
|
* test_capi.test__testcapi() becomes more verbose (#4197)Victor Stinner2017-10-311-4/+9
| | | | Write the name of each subtest on a new line to help debugging when a test does crash Python.
* bpo-31897: Convert unexpected errors when read bogus binary plists into ↵Serhiy Storchaka2017-10-313-5/+70
| | | | InvalidFileException. (#4171)
* bpo-31626: Fixed a bug in debug memory allocator. (#3844)Serhiy Storchaka2017-10-312-11/+4
| | | | Removed a code that incorrectly detected in-place resizing in realloc() and wrote to freed memory.
* bpo-31893: Fixed select.kqueue(). (#4166)Serhiy Storchaka2017-10-312-47/+73
| | | | * Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects.
* bpo-31891: Fix building the curses module on NetBSD. (#4165)Serhiy Storchaka2017-10-317-51/+335
|
* bpo-31629: Add support.SaveSignals (#4183)Victor Stinner2017-10-312-1/+43
| | | | | 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.
* Remove tiny bit of deadcode from wsgiref.validate (#3996)Alex Gaynor2017-10-311-2/+0
|
* bpo-31304: Update starmap_async documentation. (GH-4168)Pablo Galindo2017-10-301-1/+1
| | | Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code..
* bpo-31245: Asyncio unix socket datagram (#3164)Quentin Dawans2017-10-305-5/+24
|
* bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158)Serhiy Storchaka2017-10-289-38/+89
| | | separators that are not bytes-like objects.
* bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (#4070)Terry Jan Reedy2017-10-282-0/+12
|
* IDLE -- Restrict shell prompt manipulaton to the shell. (#4143)Terry Jan Reedy2017-10-283-24/+19
| | | | | | 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.
* bpo-31860: Make the font sample in the IDLE font configuration dialog ↵Serhiy Storchaka2017-10-283-34/+45
| | | | | editable. (#4106) Changes persist while IDLE remains open
* faulthandler: use _PyTime_t rather than double for timeout (#4139)Victor Stinner2017-10-271-20/+31
| | | | | | | | | | | | | | | | | 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)
* bpo-31174: Improve the code of test_tools.test_unparse. (#4146)Serhiy Storchaka2017-10-271-8/+8
|
* bpo-16135: Cleanup: Code rot left over from OS/2 support (GH-4147)Erik Bray2017-10-272-12/+1
| | | | Remove dangling references to PYCC_VACPP that are not relelvant since removal of OS/2 support.
* bpo-31545: Update documentation containing timedelta repr. (GH-3687)Utkarsh Upadhyay2017-10-271-6/+6
| | | | This is a fix to the documentation to reflect the changes merged in as part of bpo-30302.
* Fix _socket module compilation on Cygwin. (#4137)Erik Bray2017-10-271-1/+1
|
* bpo-31877: Add _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale to ↵Erik Bray2017-10-272-14/+16
| | | | | | | | pylifecycle.h (GH-4134) 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.
* Fixed sorting order of the LogRecord attributes in the documentation. (GH-4133)Arthur Darcet2017-10-271-4/+4
|
* bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812)Lovesh Harchandani2017-10-271-1/+1
| | | TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed.
* bpo-31053: Remove redundant 'venv' argument in venv example (GH-2907)cocoatomo2017-10-271-1/+1
|
* bpo-28936: Detect lexically first syntax error first (#4097)Ivan Levkivskyi2017-10-263-27/+45
| | | | Lexically first global and nonlocal syntax errors at given scope should be detected first.
* Closes bpo-28281: Remove year (1-9999) limits on the weekday() function. (#4109)Alexander Belopolsky2017-10-265-5/+74
| | | Patch by Mark Gollahon.
* bpo-30553: Add status code 421 to http.HTTPStatus (GH-2589)Vitor Pereira2017-10-264-0/+10
|
* Fix trailing whitespaces in C files. (#4130)Serhiy Storchaka2017-10-264-6/+6
|
* bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327)xdegaye2017-10-268-53/+203
|
* bpo-30937: Make usage of newline='' consistent in csv docs (GH-2730)Ammar Askar2017-10-261-3/+3
|
* bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (#4118)Serhiy Storchaka2017-10-264-1780/+1842
| | | | | | BytesWarning no longer emitted when the fromlist argument of __import__() or the __all__ attribute of the module contain bytes instances.
* fixes bpo-31866: remove code pertaining to AtheOS support (#4115)Benjamin Peterson2017-10-264-32/+5
| | | | We stop support this OS in 2007 with commit 19fab761b71a1687aee3415db3a937b5ce31975d. Let's finish.
* bpo-31857: Make the behavior of USE_STACKCHECK deterministic (#4098)pdox2017-10-266-11/+15
|
* Closes bpo-31800: Support for colon when parsing time offsets (#4015)Mario Corchero2017-10-265-13/+84
| | | Add support to strptime to parse time offsets with a colon between the hour and the minutes.
* bpo-31664: Fix test_crypt for the openwall implementation of crypt. (#4116)Serhiy Storchaka2017-10-251-1/+7
|
* bpo-31835: Optimize also FASTCALL using __future__ (#4087)Victor Stinner2017-10-251-2/+2
| | | | | _PyFunction_FastCallDict() and _PyFunction_FastCallKeywords() now also takes the fast path if the code object uses __future__ (CO_FUTURE_xxx flags).
* remove support for splitting the ceval switch into multiple switches (#4099)Benjamin Peterson2017-10-251-10/+0
| | | | | | | This kludge is from 1992. Any C99 compiler is going to be able to handle the ceval dispatch switch. Anyway, we have much bigger switches than the ceval dispatch one around. (See, e.g., Objects/unicodetype_db.h.)
* bpo-31845: Fix reading flags from environment (GH-4105)Nick Coghlan2017-10-254-45/+82
| | | | | | | | | | The startup refactoring means command line settings are now applied after settings are read from the environment. This updates the way command line settings are applied to account for that, ensures more settings are first read from the environment in _PyInitializeCore, and adds a simple test case covering the flags that are easy to check.
* bpo-30768: Recompute timeout on interrupted lock (GH-4103)Victor Stinner2017-10-249-31/+86
| | | | | | | | | | | | | | | | Fix the pthread+semaphore implementation of PyThread_acquire_lock_timed() when called with timeout > 0 and intr_flag=0: recompute the timeout if sem_timedwait() is interrupted by a signal (EINTR). See also the PEP 475. The pthread implementation of PyThread_acquire_lock() now fails with a fatal error if the timeout is larger than PY_TIMEOUT_MAX, as done in the Windows implementation. The check prevents any risk of overflow in PyThread_acquire_lock(). Add also PY_DWORD_MAX constant.