summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Trivial cleanups following bpo-31370 (#3649)Antoine Pitrou2017-09-1816-209/+171
| | | | | | * Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
* Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) ↵Antoine Pitrou2017-09-189-31/+575
| | | | (#3648)
* os.test_utime_current(): tolerate 50 ms delta (#3646)Victor Stinner2017-09-181-5/+4
|
* bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash (#3641)Victor Stinner2017-09-183-1/+26
| | | | | | | | | | * bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously by the garbage collector, because the parser was part of a reference cycle. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
* bpo-31501: Operator precedence description for arithmetic operators (#3633)svelankar2017-09-181-2/+2
|
* bpo-30928: Update idlelib/NEWS.txt to 2017 Sep 17. (#3635)Terry Jan Reedy2017-09-181-0/+19
|
* bpo-31502: IDLE Configdialog again deletes custom themes and keysets. (#3634)Terry Jan Reedy2017-09-181-2/+2
| | | This reverses a never-released regression resulting from bpo-31287.
* bpo-31497: Add private helper _PyType_Name(). (#3630)Serhiy Storchaka2017-09-176-33/+26
| | | | This function returns the last component of tp_name after a dot. Returns tp_name itself if it doesn't contain a dot.
* bpo-31482: Missing bytes support for random.seed() version 1 (#3614)Raymond Hettinger2017-09-173-2/+31
| | | bpo-31482: Missing bytes support for random.seed() version 1 #3614
* bpo-31487: Update F-strings doc example (GH-3627)Mariatta2017-09-171-1/+1
| | | Shorten the comment to: "using integer format specifier"
* bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is ↵Oren Milman2017-09-173-1/+25
| | | | defined only outside _fields_. (#3615)
* bpo-31493: Fix code context update and font update timers. (#3622)Terry Jan Reedy2017-09-172-26/+29
| | | | Canceling timers prevents a warning message when test_idle completes. (This is the minimum fix needed before upcoming releases.)
* Improve f-strings documentation (GH-3604)Mariatta2017-09-161-0/+6
| | | | | Provide additional examples of using format specifiers in f-strings Added examples for using integer and date format specifiers.
* bpo-31458: Clarify that Changelog is built from Misc/NEWS.d directory (GH-3617)Mariatta2017-09-161-2/+4
|
* bpo-31488: IDLE - update former extensions when options change. (#3612)Terry Jan Reedy2017-09-164-25/+32
| | | | | When apply changes, call .reload on each class with non-key options. Change ParenMatch so that updates affect current instances.
* bpo-28411: Support other mappings in PyInterpreterState.modules. (#3593)Eric Snow2017-09-1511-113/+216
| | | | | The concrete PyDict_* API is used to interact with PyInterpreterState.modules in a number of places. This isn't compatible with all dict subclasses, nor with other Mapping implementations. This patch switches the concrete API usage to the corresponding abstract API calls. We also add a PyImport_GetModule() function (and some other helpers) to reduce a bunch of code duplication.
* bpo-31431: SSLContext.check_hostname auto-sets CERT_REQUIRED (#3531)Christian Heimes2017-09-154-8/+41
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-1513-310/+321
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31386: Custom wrap_bio and wrap_socket type (#3426)Christian Heimes2017-09-154-13/+67
| | | | | | | | | SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and SSLSocket as return types. In the light of future deprecation of ssl.wrap_socket() module function and direct instantiation of SSLSocket, it is desirable to make the return type of SSLSocket.wrap_bio() and SSLSocket.wrap_socket() customizable. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-314777: IDLE - improve rstrip entry in doc (#3602)Terry Jan Reedy2017-09-153-3/+9
| | | | | | | 'Strip trailing whitespace' is not limited to spaces. Wording caters to beginners who do know know the meaning of 'whitespace'. Multiline string literals are not skipped. * News blurb.
* Fix description in Python 3.7 What's New (#3603)Paul Romano2017-09-151-3/+2
|
* bpo-29916: Include PyGetSetDef in C API extension documentation. (#831)Michael Seifert2017-09-152-15/+40
|
* bpo-31234: test_multiprocessing: wait 30 seconds (#3599)Victor Stinner2017-09-151-14/+17
| | | | Give 30 seconds to join_process(), instead of 5 or 10 seconds, to wait until the process completes.
* bpo-31234: Join timers in test_threading (#3598)Victor Stinner2017-09-151-0/+2
| | | | Call the .join() method of threading.Timer timers to prevent the "threading_cleanup() failed to cleanup 1 threads" warning.
* bpo-31464: asdl_c.py no longer emits trailing spaces in Python-ast.h. (#3568)Serhiy Storchaka2017-09-152-61/+62
|
* bpo-31338 (#3374)Barry Warsaw2017-09-1522-111/+128
| | | | | | | * Add Py_UNREACHABLE() as an alias to abort(). * Use Py_UNREACHABLE() instead of assert(0) * Convert more unreachable code to use Py_UNREACHABLE() * Document Py_UNREACHABLE() and a few other macros.
* bpo-31480: IDLE - fix tests to pass with zzdummy extension disabled. (#3590)Terry Jan Reedy2017-09-144-45/+41
| | | Enabled by default was a temporary expedient. The fix is to add a user override to enable.
* bpo-31128: Allow pydoc to bind to arbitrary hostnames (#3011)Feanil Patel2017-09-145-19/+39
| | | | New -n flag allow overriding localhost with custom value, for example to run from containers.
* bpo-30860: Fix deadcode in obmalloc.c (#3499)Victor Stinner2017-09-141-2/+2
| | | | | | Fix Coverity CID 1417587: _PyMem_Initialize() contains code which is never executed. Replace the runtime check with a build assertion.
* bpo-31234: Add support.join_thread() helper (#3587)Victor Stinner2017-09-149-65/+50
| | | | join_thread() joins a thread but raises an AssertionError if the thread is still alive after timeout seconds.
* bpo-31234: Join threads in test_queue (#3586)Victor Stinner2017-09-141-21/+25
| | | Call thread.join() to prevent the "dangling thread" warning.
* bpo-31234: Add test.support.wait_threads_exit() (#3578)Victor Stinner2017-09-146-109/+161
| | | | Use _thread.count() to wait until threads exit. The new context manager prevents the "dangling thread" warning.
* bpo-31234: Join threads in test_threading (#3579)Victor Stinner2017-09-141-0/+4
| | | Call thread.join() to prevent the "dangling thread" warning.
* bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). (#3545)scoder2017-09-143-2/+60
| | | | | | * Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. * Ignore only AttributeError on attribute lookups in ElementTree.XMLParser() and propagate all other exceptions.
* bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in case ↵Oren Milman2017-09-143-1/+16
| | | | env has a bad keys() method. (#3580)
* bpo-28556: typing.get_type_hints: better globalns for classes and modules ↵Łukasz Langa2017-09-144-22/+96
| | | | | | | | | | | | | | | (#3582) This makes the default behavior (without specifying `globalns` manually) more predictable for users, finds the right globalns automatically. Implementation for classes assumes has a `__module__` attribute and that module is present in `sys.modules`. It does this recursively for all bases in the MRO. For modules, the implementation just uses their `__dict__` directly. This is backwards compatible, will just raise fewer exceptions in naive user code. Originally implemented and reviewed at https://github.com/python/typing/pull/470.
* bpo-28411: Isolate PyInterpreterState.modules (#3575)Eric Snow2017-09-1410-55/+116
| | | | | A bunch of code currently uses PyInterpreterState.modules directly instead of PyImport_GetModuleDict(). This complicates efforts to make changes relative to sys.modules. This patch switches to using PyImport_GetModuleDict() uniformly. Also, a number of related uses of sys.modules are updated for uniformity for the same reason. Note that this code was already reviewed and merged as part of #1638. I reverted that and am now splitting it up into more focused parts.
* bpo-31234: Join threads in test_hashlib (#3573)Victor Stinner2017-09-141-13/+13
| | | | | | | | | | * bpo-31234: Join threads in test_hashlib Use thread.join() to wait until the parallel hash tasks complete rather than using events. Calling thread.join() prevent "dangling thread" warnings. * test_hashlib: minor PEP 8 coding style fixes
* bpo-31234: Join threads in tests (#3572)Victor Stinner2017-09-144-3/+15
| | | | Call thread.join() on threads to prevent the "dangling threads" warning.
* bpo-31457: Allow for nested LoggerAdapter objects (#3551)Łukasz Langa2017-09-143-0/+33
| | | | | | Some of the proxied methods use internal Logger state which isn't proxied, causing failures if an adapter is applied to another adapter. This commit fixes the issue, adds a new test for the use case.
* _ssl_: Fix compiler warning (#3559)Victor Stinner2017-09-141-1/+1
| | | | | | | Cast Py_buffer.len (Py_ssize_t, signed) to size_t (unsigned) to prevent the following warning: Modules/_ssl.c:3089:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
* bpo-30860: Fix a refleak. (#3567)Eric Snow2017-09-147-43/+47
| | | | | Resolves bpo-31420. (This was accidentally reverted when in #3565.)
* bpo-31404: Revert "remove modules from Py_InterpreterState (#1638)" (#3565)Eric Snow2017-09-1421-308/+154
| | | PR #1638, for bpo-28411, causes problems in some (very) edge cases. Until that gets sorted out, we're reverting the merge. PR #3506, a fix on top of #1638, is also getting reverted.
* bpo-31462: Remove trailing whitespaces. (#3564)Serhiy Storchaka2017-09-1421-62/+62
|
* Improve code examples in hashlib cookie signing (GH-3562)sww2017-09-141-3/+4
| | | | | The `blake2b` function does not take the `data` keyword argument. The hex digest returned by sign was a string, whereas compare_digest expects bytes-like objects. Typo fix: compare_digesty -> compare_digest
* bpo-30246: fix several error messages which only mention bytes in struct (#1421)Xiang Zhang2017-09-141-4/+5
|
* bpo-31458: Update Misc/NEWS link in What's New page (GH-3555)Mariatta2017-09-132-2/+2
| | | | Update the link from Misc/NEWS to Misc/NEWS.d
* bpo-31234: Try to fix lock_tests warning (#3557)Victor Stinner2017-09-131-0/+8
| | | | | | | Try to fix the "Warning -- threading_cleanup() failed to cleanup 1 threads" warning in test.lock_tests: wait a little bit longer to give time to the threads to complete. Warning seen on test_thread and test_importlib.
* bpo-28556: Minor updates to typing module (#3550)Ivan Levkivskyi2017-09-133-50/+38
| | | | * Copy changes to typing from upstream repo * Add NEWS entry
* bpo-31418: Fix an assertion failure in PyErr_WriteUnraisable() in case of an ↵Oren Milman2017-09-132-1/+3
| | | | exception with a bad __module__ attribute. (#3539)