summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30721: Add missing '?' to new error message (GH-3131)Sanyam Khurana2017-08-181-2/+2
|
* bpo-30721: Show correct syntax hint in Py3 when using Py2 redirection syntax ↵Sanyam Khurana2017-08-181-0/+33
| | | | (#2345)
* bpo-30871: pythoninfo: more sys, os, time data (#3130)Victor Stinner2017-08-181-40/+82
| | | | | | | | * bpo-30871: pythoninfo: more sys, os, time data PythonInfo now converts types other than intger to string by default. * fix typo
* bpo-31183: `dis` now handles coroutines & async generators (GH-3077)syncosmic2017-08-182-17/+57
| | | | | | | | | | | | | | Coroutines and async generators use a distinct attribute name for their code objects, so this updates the `dis` module to correctly disassemble objects with those attributes. Due to the increase in the test module length, it also fixes some latent defects in the tests related to how the displayed source line numbers are extracted. https://bugs.python.org/issue31230 is a follow-up issue suggesting we may want to solve this a different way, by instead giving all these object types a common `__code__` attribute, avoiding the need for special casing in the `dis` module.
* bpo-31001: IDLE: Add tests for configdialog highlight tab (#3123)Cheryl Sabella2017-08-182-157/+670
|
* bpo-30871: pythoninfo: add expat and _decimal (#3121)Victor Stinner2017-08-171-0/+22
| | | | | | | | * bpo-30871: pythoninfo: add expat and _decimal * Remove _decimal.__version__ The string is hardcoded, not really interesting.
* bpo-30871: Add test.pythoninfo (#3075)Victor Stinner2017-08-172-3/+407
| | | | | | * Add Lib/test/pythoninfo.py: script collecting various informations about Python to help debugging test failures. * regrtest: remove sys.hash_info and sys.flags from header. * Travis CI, Appveyor: run pythoninfo before tests
* bpo-24700: Add a fast path for comparing array.array of equal type (#3009)Adrian Wielgosik2017-08-171-0/+10
|
* bpo-18966: non-daemonic threads created by a multiprocessing.Process should ↵Antoine Pitrou2017-08-163-0/+31
| | | | | | | | be joined on exit (#3111) * bpo-18966: non-daemonic threads created by a multiprocessing.Process should be joined on exit * Add NEWS blurb
* bpo-31069, test_multiprocessing: Fix dangling process (#3103)Victor Stinner2017-08-161-1/+2
| | | | Fix a warning about dangling processes in test_rapid_restart() of _test_multiprocessing: join the process.
* bpo-30928: Update idlelib/NEWS.txt to 2017-08-15. (#3098)Terry Jan Reedy2017-08-151-1/+29
|
* bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (#3096)Cheryl Sabella2017-08-152-457/+468
| | | The slightly modified tests continue to pass. Patch by Cheryl Sabella.
* bpo-30714: ALPN changes for OpenSSL 1.1.0f (#2305)Christian Heimes2017-08-151-2/+3
| | | | | | | | | | OpenSSL 1.1.0 to 1.1.0e aborted the handshake when server and client could not agree on a protocol using ALPN. OpenSSL 1.1.0f changed that. The most recent version now behaves like OpenSSL 1.0.2 again. The ALPN callback can pretend to not been set. See https://github.com/openssl/openssl/pull/3158 for more details Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31002: IDLE: Add tests for configdialog keys tab (#2996)Cheryl Sabella2017-08-152-188/+609
| | | Patch by Cheryl Sabella.
* bpo-30824: Add mimetype for .json (#3048)Nate Tangsurat2017-08-141-0/+1
|
* bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() ↵Коренберг Марк2017-08-141-0/+19
| | | | (#3000) (#3000)
* bpo-5001, bpo-31169: Fix two uninformative asserts in ↵Allen W. Smith, Ph.D2017-08-121-7/+10
| | | | | | | | | | | | | | | | multiprocessing/managers.py (#3078) * Make error message more informative Replace assertions in error-reporting code with more-informative version that doesn't cause confusion over where and what the error is. * Additional clarification + get travis to check * Change from SystemError to TypeError As suggested in PR comment by @pitrou, changing from SystemError; TypeError appears appropriate. * NEWS file installation; ACKS addition (will do my best to justify it by additional work)
* bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065)Victor Stinner2017-08-101-1/+3
|
* bpo-26762: _test_multiprocessing reports dangling (#3064)Victor Stinner2017-08-101-0/+6
| | | | _test_multiprocessing now marks the test as ENV_CHANGED on dangling process or thread.
* regrtest: count also env changed as failures in progress (#3061)Victor Stinner2017-08-101-2/+3
|
* Enhance support.reap_children() (#3036)Victor Stinner2017-08-102-17/+73
| | | | | | | * reap_children() now sets environment_altered to True to detect bugs using python3 -m test --fail-env-changed * Replace bare "except:" with "except OSError:" in reap_children() * Write an unit test for reap_children() using a timeout of 60 seconds
* bpo-31151: Add socketserver.ForkingMixIn.server_close() (#3057)Victor Stinner2017-08-102-6/+12
| | | | | | | | | * Add socketserver.ForkingMixIn.server_close() bpo-31151: socketserver.ForkingMixIn.server_close() now waits until all child processes completed to prevent leaking zombie processes. * Fix test on Windows which doesn't have ForkingMixIn
* bpo-31160: test_tempfile: Fix reap_children() warning (#3056)Victor Stinner2017-08-101-1/+7
| | | | TestRandomNameSequence.test_process_awareness() now calls os.waitpid() to avoid leaking a zombie process.
* bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055)Victor Stinner2017-08-101-35/+22
| | | | | | | | | | | | | The current test_child_terminated_in_stopped_state() function test creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and then crash (SIGSEGV). The problem is that calling os.waitpid() in the parent process is not enough to close the process: the child process remains alive and so the unit test leaks a child process in a strange state. Closing the child process requires non-trivial code, maybe platform specific. Remove the functional test and replaces it with an unit test which mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to test the WIFSTOPPED() path.
* bpo-19903: IDLE: Calltips changed to use inspect.signature (#2822)Louie Lu2017-08-102-26/+59
| | | | | Idlelib.calltips.get_argspec now uses inspect.signature instead of inspect.getfullargspec, like help() does. This improves the signature in the call tip in a few different cases, including builtins converted to provide a signature. A message is added if the object is not callable, has an invalid signature, or if it has positional-only parameters. Patch by Louie Lu.
* bpo-31160: test_builtin: don't check waitpid() status (#3050)Victor Stinner2017-08-091-2/+2
|
* bpo-31160: Fix test_random for zombie process (#3045)Victor Stinner2017-08-091-1/+7
| | | | TestModule.test_after_fork() now calls os.waitpid() to read the exit status of the child process to avoid creating a zombie process.
* bpo-31160: regrtest now reaps child processes (#3044)Victor Stinner2017-08-091-0/+5
| | | | Add a post_test_cleanup() function which currently only calls support.reap_children().
* bpo-31160: Fix test_builtin for zombie process (#3043)Victor Stinner2017-08-091-0/+4
| | | | | PtyTests.run_child() now calls os.waitpid() to read the exit status of the child process to avoid creating zombie process and leaking processes in the background.
* bpo-31072: Add filter to zipapp (#3021)Jeffrey Rackauckas2017-08-092-2/+21
| | | | | | bpo-31072: Add a filter argument to zipapp.create_archive (GH-3021) * Add an include_file argument to allow callers to decide which files to include * Document the new argument
* bpo-31070: Fix a race condition in importlib _get_module_lock(). (#3033)Serhiy Storchaka2017-08-091-2/+12
|
* bpo-31150: Wait for child process in test_forkinthread to avoid thread ↵Ammar Askar2017-08-091-0/+2
| | | | reaped warnings (#3032)
* ttk: fix LabeledScale and OptionMenu destroy() method (#3025)Victor Stinner2017-08-081-4/+8
| | | | | | | | bpo-31135: Call the parent destroy() method even if the used attribute doesn't exist. The LabeledScale.destroy() method now also explicitly clears label and scale attributes to help the garbage collector to destroy all widgets.
* bpo-31130: IDLE -- stop leaks in test_configdialog. (#3016)Terry Jan Reedy2017-08-072-38/+49
| | | | Initial patch by Victor Stinner.
* bpo-29910: IDLE - revert `break`s that disabled calltip close. (#2997)Terry Jan Reedy2017-08-071-4/+4
|
* bpo-31107: Fix copyreg mangled slot names calculation. (#2989)Shane Harvey2017-08-042-1/+15
|
* bpo-30978: str.format_map() now passes key lookup exceptions through. (#2790)Serhiy Storchaka2017-08-032-1/+8
| | | Previously any exception was replaced with a KeyError exception.
* bpo-31071: Avoid masking original TypeError in call with * unpacking (#2957)Serhiy Storchaka2017-08-031-0/+16
| | | when other arguments are passed.
* Spelling fixes (#2902)Ville Skyttä2017-08-0320-32/+32
|
* bpo-31080: Allowed logging.config.fileConfig() to accept both args and ↵Preston Landers2017-08-022-4/+6
| | | | kwargs. (GH-2979)
* bpo-31061: fix crash in asyncio speedup module (GH-2966)Alexander Mohr2017-08-022-0/+27
|
* bpo-30897: Add is_mount() to pathlib.Path (#2669)Cooper Lees2017-08-012-0/+36
| | | | * Add in is_mount() call to pathlib.Path similiar to os.path.ismount(path) * Add tests for is_mount()
* bpo-31084: QueueHandler now formats messages correctly. (GH-2954)favll2017-08-012-4/+19
|
* bpo-31083: IDLE: Describe the Page classes in configdialog (#2965)csabella2017-08-011-15/+27
| | | | | Add template as comment. Update existing classes to match outline. Initial patch by Cheryl Sabella.
* Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)Alexander Belopolsky2017-07-312-31/+47
| | | | | | | | | | | | | | | | | | * Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. * bpo-5288: Implemented %z formatting of sub-minute offsets. * bpo-5288: Removed mentions of the whole minute limitation on TZ offsets. * bpo-5288: Removed one more mention of the whole minute limitation. Thanks @csabella! * Fix a formatting error in the docs * Addressed review comments. Thanks, @haypo.
* bpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276)csabella2017-07-312-1/+27
| | | between instances of OptionMenu.
* bpo-31050: IDLE: Factor GenPage class from ConfigDialog (#2952)csabella2017-07-302-284/+267
| | | | The slightly modified tests for the General tab continue to pass. Patch by Cheryl Sabella.
* Updated LoggerAdapter.isEnabledFor to take advantage of caching. (GH-2951)Vinay Sajip2017-07-301-3/+1
|
* bpo-31004: IDLE: Factor out FontPage class from configdialog (step 1) (#2905)csabella2017-07-302-239/+267
| | | | | The slightly modified tests continue to pass. The General test broken by the switch to Notebook is fixed. Patch mostly by Cheryl Sabella.
* bpo-30928: Update IDLE News.txt. (#2948)Terry Jan Reedy2017-07-301-2/+40
|