summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (gh-3647)Rohit Balasubramanian2017-09-191-0/+6
|
* bpo-31479: Always reset the signal alarm in tests (#3588)Victor Stinner2017-09-196-40/+56
| | | | | | | | | | | | | * bpo-31479: Always reset the signal alarm in tests Use "try: ... finally: signal.signal(0)" pattern to make sure that tests don't "leak" a pending fatal signal alarm. * Move two more alarm() calls into the try block Fix also typo: replace signal.signal(0) with signal.alarm(0) * Move another signal.alarm() into the try block
* pythoninfo: ignore OSError(ENOSYS) on getrandom() (#3655)Victor Stinner2017-09-191-5/+12
|
* bpo-31293: Fix crashes in truediv and mul of a timedelta by a float with a ↵Oren Milman2017-09-193-4/+55
| | | | bad as_integer_ratio() method. (#3227)
* bpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name ↵Oren Milman2017-09-193-0/+18
| | | | is not a string. (#3257)
* bpo-31492: Fix assertion failures in case of a module with a bad __name__ ↵Oren Milman2017-09-194-4/+20
| | | | attribute. (#3620)
* post 3.7.0a1 developmentNed Deily2017-09-191-1/+1
|
* Merge tag 'v3.7.0a1'Ned Deily2017-09-19644-1751/+6919
|\
| * Bump to 3.6.0a1v3.7.0a1Ned Deily2017-09-191-2/+2
| |
| * Update PyDoc topics and NEWS blurbs for 3.7.0a1Ned Deily2017-09-19643-1749/+6917
|/
* Update Mac installer Welcome and ReadMe files for 3.7.0a1Ned Deily2017-09-192-34/+18
|
* 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.