summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-22671: Clarify and test default read method implementations (#4568)Sanyam Khurana2017-12-112-7/+59
| | | Original patch written by Martin Panter, enhanced by Sanyam Khurana.
* bpo-32252: Fix faulthandler_suppress_crash_report() (#4794)Victor Stinner2017-12-112-1/+3
| | | | Fix faulthandler_suppress_crash_report() used to prevent core dump files when testing crashes. getrlimit() returns zero on success.
* bpo-32262: Fix f-string (#4787)Yury Selivanov2017-12-111-1/+1
|
* bpo-32262: Fix codestyle; use f-strings formatting where necessary. (#4775)Yury Selivanov2017-12-1024-348/+332
|
* Skip test_read_pty_output test on macOS for poll and select. (#4774)Yury Selivanov2017-12-101-3/+1
| | | Starting with 10.13.2 the test hangs forever.
* bpo-32114: Updated the documentation for get_event_loop to reflect the ↵Pablo Galindo2017-12-101-4/+9
| | | | policy change (#4510)
* Removed doubled 'bpo-'. (#4777)Terry Jan Reedy2017-12-101-1/+1
|
* bpo-31506: Improve the error message logic for class instantiation (GH-4740)Sanyam Khurana2017-12-103-3/+54
| | | | | | | | | | | | The error messages in `object.__new__` and `object.__init__` now aim to point the user more directly at the name of the class being instantiated in cases where they *haven't* been overridden (on the assumption that the actual problem is a missing `__new__` or `__init__` definition in the class body). When they *have* been overridden, the errors still report themselves as coming from object, on the assumption that the problem is with the call up to the base class in the method implementation, rather than with the way the constructor is being called.
* byte swap the raw hash secrets (more bpo-32260) (#4773)Benjamin Peterson2017-12-091-1/+1
|
* fix my byte-swapping implementation (#4772)Benjamin Peterson2017-12-091-10/+10
|
* bpo-32260: don't byte swap siphash keys (#4771)Benjamin Peterson2017-12-092-3/+4
| | | | | Reference siphash takes the keys as a bytes, so it makes sense to byte swap when reifying the keys as 64-bit integers. However, Python's siphash takes host integers in to start with.
* closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575)Benjamin Peterson2017-12-0933-2503/+3362
| | | | | | | | | | | | | | | | | | | | | | | | | Python now supports checking bytecode cache up-to-dateness with a hash of the source contents rather than volatile source metadata. See the PEP for details. While a fairly straightforward idea, quite a lot of code had to be modified due to the pervasiveness of pyc implementation details in the codebase. Changes in this commit include: - The core changes to importlib to understand how to read, validate, and regenerate hash-based pycs. - Support for generating hash-based pycs in py_compile and compileall. - Modifications to our siphash implementation to support passing a custom key. We then expose it to importlib through _imp. - Updates to all places in the interpreter, standard library, and tests that manually generate or parse pyc files to grok the new format. - Support in the interpreter command line code for long options like --check-hash-based-pycs. - Tests and documentation for all of the above.
* bpo-32253: Deprecate with statement and bare await for asyncio locks (GH-4764)Andrew Svetlov2017-12-095-55/+108
| | | | | * Add test for 'with (yield from lock)' * Deprecate with statement for asyncio locks * Document the deprecation
* bpo-32212: Updated logging documentation to make parameter names more ↵Vinay Sajip2017-12-091-20/+21
| | | | consistent with source. (GH-4765)
* bpo-32193: Convert asyncio to async/await usage (#4753)Andrew Svetlov2017-12-0822-770/+646
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Convert asyncio/tasks.py to async/await * Convert asyncio/queues.py to async/await * Convert asyncio/test_utils.py to async/await * Convert asyncio/base_subprocess.py to async/await * Convert asyncio/subprocess.py to async/await * Convert asyncio/streams.py to async/await * Fix comments * Convert asyncio/locks.py to async/await * Convert asyncio.sleep to async def * Add a comment * Add missing news * Convert stubs from AbstrctEventLoop to async functions * Convert subprocess_shell/subprocess_exec * Convert connect_read_pipe/connect_write_pip to async/await syntax * Convert create_datagram_endpoint * Convert create_unix_server/create_unix_connection * Get rid of old style coroutines in unix_events.py * Convert selector_events.py to async/await * Convert wait_closed and create_connection * Drop redundant line * Convert base_events.py * Code cleanup * Drop redundant comments * Fix indentation * Add explicit tests for compatibility between old and new coroutines * Convert windows event loop to use async/await * Fix double awaiting of async function * Convert asyncio/locks.py * Improve docstring * Convert tests to async/await * Convert more tests * Convert more tests * Convert more tests * Convert tests * Improve test
* bpo-22589 Changed MIME type of .bmp to "image/bmp" (#4756)Nitish Chandra2017-12-082-1/+2
| | | Per rfc7903 this is the standard MIME type for this file format, and appears as such in the IANA MIME registry.
* Fix missing DECREF of mod. (#4749)Neil Schemenauer2017-12-081-0/+1
|
* PyLong_FromString(): fix Coverity CID 1424951 (#4738)Victor Stinner2017-12-071-3/+2
| | | | | | | | | | | Explicitly cast digits (Py_ssize_t) to double to fix the following false-alarm warning from Coverity: "fsize_z = digits * log_base_BASE[base] + 1;" CID 1424951: Incorrect expression (UNINTENDED_INTEGER_DIVISION) Dividing integer expressions "9223372036854775783UL" and "4UL", and then converting the integer quotient to type "double". Any remainder, or fractional part of the quotient, is ignored.
* bpo-32208: update threading.Semaphore docs and add unit test (#4709)Garrett Berg2017-12-072-15/+17
| | | | | | | | | | * fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior * add test for blocking * Update threading.rst * semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
* bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link ↵xdegaye2017-12-072-1/+2
| | | | list' (GH-4696)
* Fix hardcoded value in test_os.py (#4744)Pablo Galindo2017-12-071-1/+1
|
* Allows non-critical upload steps to fail (#4742)Steve Dower2017-12-061-3/+3
|
* Use raw strings for regex to avoid invalid escape sequences. (GH-4741)Eric V. Smith2017-12-061-2/+2
|
* Modify configure to link with the compiler driver under HP-UX when not using ↵Rob Boehne2017-12-062-2/+4
| | | | gcc. (#2519)
* bpo-32233: Fix build with --with-system-libmpdec. (#4739)Stefan Krah2017-12-061-1/+2
|
* bpo-32030: Add _PyImport_Fini2() (#4737)Victor Stinner2017-12-063-35/+78
| | | | | | | | | | | | | | | | | | | | | PyImport_ExtendInittab() now uses PyMem_RawRealloc() rather than PyMem_Realloc(). PyImport_ExtendInittab() can be called before Py_Initialize() whereas only the PyMem_Raw allocator is supposed to be used before Py_Initialize(). Add _PyImport_Fini2() to release the memory allocated by PyImport_ExtendInittab() at exit. PyImport_ExtendInittab() now forces the usage of the default raw allocator, to be able to release memory in _PyImport_Fini2(). Don't export these functions anymore to be C API, only to Py_BUILD_CORE: * _PyExc_Fini() * _PyImport_Fini() * _PyGC_DumpShutdownStats() * _PyGC_Fini() * _PyType_Fini() * _Py_HashRandomization_Fini()
* bpo-25910: Fixes redirection from http to https (#4674)Sanyam Khurana2017-12-0624-39/+39
|
* bpo-32030: Add pymain_get_global_config() (#4735)Victor Stinner2017-12-067-77/+142
| | | | | | | | | | | | | * Py_Main() now starts by reading Py_xxx configuration variables to only work on its own private structure, and then later writes back the configuration into these variables. * Replace Py_GETENV() with pymain_get_env_var() which ignores empty variables. * Add _PyCoreConfig.dump_refs * Add _PyCoreConfig.malloc_stats * _PyObject_DebugMallocStats() is now responsible to check if debug hooks are installed. The function returns 1 if stats were written, or 0 if the hooks are disabled. Mark _PyMem_PymallocEnabled() as static.
* bpo-32030: pass interp to _PyImport_Init() (#4736)Victor Stinner2017-12-063-11/+3
| | | | | Remove also the initstr variable, unused since the commit e69f0df45b709c25ac80617c41bbae16f56870fb pushed in 2012: "bpo-13959: Re-implement imp.find_module() in Lib/imp.py"
* Bump to 3.7.0a3+Ned Deily2017-12-062-3/+3
|
* Merge tag 'v3.7.0a3'Ned Deily2017-12-06158-419/+1643
|\
| * Bump to 3.7.0a3v3.7.0a3Ned Deily2017-12-052-3/+3
| |
| * Update NEWS and pydoc topics.Ned Deily2017-12-05156-409/+1640
| |
| * Tidy NEWS entry.Ned Deily2017-12-051-7/+0
| |
* | Add Guido and Ivan as owners for typing.py (#4729)Guido van Rossum2017-12-051-0/+2
| |
* | Add dataclasses to CODEOWNERS. (GH-4730)Eric V. Smith2017-12-051-0/+2
| |
* | bpo-32030: Simplify _PyCoreConfig_INIT macro (#4728)Victor Stinner2017-12-054-51/+12
|/ | | | | | | * Simplify _PyCoreConfig_INIT, _PyMainInterpreterConfig_INIT, _PyPathConfig_INIT macros: no need to set fields to 0/NULL, it's redundant (the C language sets them to 0/NULL for us). * Fix typo: pymain_run_statup() => pymain_run_startup() * Remove a few XXX/TODO
* Add a missing space in tkinter documentation. (GH-4692)Julien Palard2017-12-051-1/+1
|
* bpo-31380: Skip test_httpservers test_undecodable_file on macOS. (#4720)Ned Deily2017-12-052-1/+3
| | | The undecodable file name cannot be created on macOS APFS file systems.
* Update macOS installer to XZ 5.2.3 (#4718)Ned Deily2017-12-051-3/+3
|
* bpo-31392: Update macOS installer to use OpenSSL 1.0.2m (#4715)Ned Deily2017-12-052-4/+4
|
* bpo-19610: Warn if distutils is provided something other than a list to some ↵Neil Schemenauer2017-12-055-47/+66
| | | | | | | | | | | | | | | fields (#4685) * Rather than raise TypeError, warn and call list() on the value. * Fix tests, revise NEWS and whatsnew text. * Revise documentation, a string is okay as well. * Ensure 'requires' and 'obsoletes' are real lists. * Test that requires and obsoletes are turned to lists.
* Enable SQLite JSON functions for macOS installer build (#4712)Ned Deily2017-12-051-0/+1
|
* [bpo-28556] Minor fixes for typing module (#4710)Ivan Levkivskyi2017-12-053-10/+55
|
* bpo-28791: Update macOS installer to use SQLite 3.21.0. (#4245)Mariatta2017-12-052-3/+4
|
* bpo-30928: update idlelib/NEWS.txt. (#4706)Terry Jan Reedy2017-12-041-0/+7
|
* bpo-32214: Implement PEP 557: Data Classes (#4704)Eric V. Smith2017-12-043-0/+2854
|
* bpo-32207: Improve tk event exception tracebacks in IDLE. (#4703)Terry Jan Reedy2017-12-042-5/+15
| | | | | | | | When tk event handling is driven by IDLE's run loop, a confusing and distracting queue.EMPTY traceback context is no longer added to tk event exception tracebacks. The traceback is now the same as when event handling is driven by user code. Patch based on a suggestion by Serhiy Storchaka.
* bpo-30928: Update idlelib/NEWS.txt to 2017 Dec 3. (#4701)Terry Jan Reedy2017-12-041-0/+16
| | | Patches are in 3.7.0a3 even if this update is not.
* Revert "bpo-32197: Try to fix a compiler error on OS X introduced in ↵Victor Stinner2017-12-0412-424/+455
| | | | | | | | | | | | | | | | | | | | | | | bpo-32030. (#4681)" (#4694) * Revert "bpo-32197: Try to fix a compiler error on OS X introduced in bpo-32030. (#4681)" This reverts commit 13badcbc60cdbfae1dba1683fd2fae9d70717143. Re-apply commits: * "bpo-32030: _PyPathConfig_Init() sets home and program_name (#4673)" commit af5a895073c24637c094772b27526b94a12ec897. * "bpo-32030: Fix config_get_program_name() on macOS (#4669)" commit e23c06e2b03452c9aaf0dae52296c85e572f9bcd. * "bpo-32030: Add Python/pathconfig.c (#4668)" commit 0ea395ae964c9cd0f499e2ef0d0030c971201220. * "bpo-32030: Don't call _PyPathConfig_Fini() in Py_FinalizeEx() (#4667)" commit ebac19dad6263141d5db0a2c923efe049dba99d2. * "bpo-32030: Fix Py_GetPath(): init program_name (#4665)" commit 9ac3d8882712c9675c3d2f9f84af6b5729575cde. * Fix compilation error on macOS