summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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)
* bpo-31234: threading_cleanup() now warns immediately (#3138)Victor Stinner2017-09-131-9/+19
| | | | | | support.threading_cleanup() waits for 1 second before emitting a warning if there are threads running in the background. With this change, it now emits the warning immediately, to be able to catch bugs more easily.
* Update subprocess.communicate() docstring.Joel Schaerer2017-09-131-3/+3
| | | Explicitly state that communicate() closes stdin after writing input to it.
* bpo-31234, socket.create_connection(): Fix ref cycle (#3546)Victor Stinner2017-09-132-0/+4
|
* bpo-31234: Fix dangling thread in test_ftplib (#3544)Victor Stinner2017-09-131-0/+2
| | | Clear also self.server_thread attribute in TestTimeouts.tearDown().
* bpo-31448, test_poplib: Fix ResourceWarning (#3542)Victor Stinner2017-09-131-3/+3
| | | Call POP3.close(), don't close close directly the sock attribute.
* Travis CI: run coverage test using --fail-env-changed (#3541)Victor Stinner2017-09-131-1/+1
|
* bpo-31234: Fix dangling thread in test_ftp/poplib (#3540)Victor Stinner2017-09-132-1/+12
| | | | Explicitly clear the server attribute in test_ftplib and test_poplib to prevent dangling thread.
* bpo-31233: socketserver.ThreadingMixIn.server_close() (#3523)Victor Stinner2017-09-133-11/+19
| | | | | | | | | socketserver.ThreadingMixIn now keeps a list of non-daemonic threads to wait until all these threads complete in server_close(). Reenable test_logging skipped tests. Fix SocketHandlerTest.tearDown(): close the socket handler before stopping the server, so the server can join threads.
* bpo-30830: logging.config.listen() calls server_close() (#3524)Victor Stinner2017-09-131-1/+1
| | | | | | | | | | The ConfigSocketReceiver.serve_until_stopped() method from logging.config.listen() now calls server_close() (of socketserver.ThreadingTCPServer) rather than closing manually the socket. While this change has no effect yet, it will help to prevent dangling threads once ThreadingTCPServer.server_close() will join spawned threads (bpo-31233).
* Mention enum as an ex (#2982)Louie Lu2017-09-131-2/+2
|
* bpo-31394: Make tokenize.rst PEP 8-compliant (GH-3526)Mariatta2017-09-131-2/+3
| | | The last commit contained lines longer than 80 characters.
* bpo-31394: Clarify documentation about token type attribute (GH-3469)Aivar Annamaa2017-09-131-2/+2
| | | | Make it clear that Ellipsis tokens also have type attribute set to token.OP.
* bpo-31249: Fix test_concurrent_futures dangling thread (#3521)Victor Stinner2017-09-131-0/+3
| | | | ProcessPoolShutdownTest.test_del_shutdown() now closes the call queue and joins its thread, to prevent leaking a dangling thread.
* bpo-31234: Enhance test_thread.test_forkinthread() (#3516)Victor Stinner2017-09-121-12/+19
| | | | | | | | | | | * test_thread.test_forkinthread() now waits until the thread completes. * Check the status in the test method, not in the thread function * Don't ignore RuntimeError anymore: since the commit 346cbd351ee0dd3ab9cb9f0e4cb625556707877e (bpo-16500, os.register_at_fork(), os.fork() cannot fail anymore with RuntimeError. * Replace 0.01 literal with a new POLL_SLEEP constant * test_forkinthread(): test if os.fork() exists rather than testing the platform.
* bpo-31428: Prevent raising a SystemError in case the memo arg of ↵Oren Milman2017-09-122-5/+24
| | | | ElementTree.Element.__deepcopy__() isn't a dictionary. (#3512)
* bpo-31421: Document how IDLE runs tkinter programs. (#3513)Terry Jan Reedy2017-09-123-16/+63
| | | | IDLE calls tcl/tk update in the background in order to make live interaction and experimentatin with tkinter applications much easier.
* bpo-27099: Finish updating IDLE doc and help text. (#3510)Terry Jan Reedy2017-09-122-20/+11
| | | | As needed for the conversion of extensions to features.
* bpo-30860: Move windows.h include out of internal/*.h. (#3458)Eric Snow2017-09-124-20/+19
| | | PR #3397 introduced a large number of warnings to the Windows build. This patch fixes them.
* bpo-30860: Fix a refleak. (#3506)Eric Snow2017-09-127-43/+47
| | | | | | | | | | | | | | * Drop warnoptions from PyInterpreterState. * Drop xoptions from PyInterpreterState. * Don't set warnoptions and _xoptions again. * Decref after adding to sys.__dict__. * Drop an unused macro. * Check sys.xoptions *before* we delete it.
* bpo-30860: Always provide serialno. (#3507)Eric Snow2017-09-121-1/+1
| | | This fixes bpo-31407.
* bpo-31416: Fix assertion failures in case of a bad warnings.filters or ↵Oren Milman2017-09-113-3/+33
| | | | | warnings.defaultaction. (#3496) Patch by Oren Milman.
* bpo-30928: Update idlelib/NEWS.txt to 2017-09-11. (#3503)Terry Jan Reedy2017-09-111-0/+46
|
* bpo-31414: IDLE -- fix tk entry box tests by deleting first. (#3501)Terry Jan Reedy2017-09-112-11/+19
| | | | | Adding to an int entry is not the same as deleting and inserting because int('') will fail.
* bpo-30860: Add Include/internal/ in "make tags" (#3498)Victor Stinner2017-09-111-2/+2
|
* test_ssl: Implement timeout in ssl_io_loop() (#3500)Victor Stinner2017-09-111-0/+3
| | | The timeout parameter was not used.
* Remove a null statement that was necessary for --without-threads (#3478)Zackery Spytz2017-09-111-1/+0
|
* bpo-31373: remove overly strict float range checks (#3486)Benjamin Peterson2017-09-114-6/+14
| | | | | This undoes a853a8ba7850381d49b284295dd6f0dc491dbe44 except for the pytime.c parts. We want to continue to allow IEEE 754 doubles larger than FLT_MAX to be rounded into finite floats. Tests were added to very this behavior.
* bpo-31411: Prevent raising a SystemError in case warnings.onceregistry is ↵Oren Milman2017-09-113-1/+20
| | | | not a dictionary. (#3485)
* bpo-30781: IDLE: Fix help button on configdialog (#3238)Cheryl Sabella2017-09-111-3/+3
| | | | | This fixes an omission in the ttk conversion patch for this issue, hence no new news. Patch by Cheryl Sabella.
* bpo-27099: IDLE - Convert built-in extensions to regular features (#2494)wohlganger2017-09-1021-272/+451
| | | | | | | | | | | | | | | | | | | | | About 10 IDLE features were implemented as supposedly optional extensions. Their different behavior could be confusing or worse for users and not good for maintenance. Hence the conversion. The main difference for users is that user configurable key bindings for builtin features are now handled uniformly. Now, editing a binding in a keyset only affects its value in the keyset. All bindings are defined together in the system-specific default keysets in config- extensions.def. All custom keysets are saved as a whole in config- extension.cfg. All take effect as soon as one clicks Apply or Ok. The affected events are '<<force-open-completions>>', '<<expand-word>>', '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>', '<<run-module>>', '<<check-module>>', and '<<zoom-height>>'. Any (global) customizations made before 3.6.3 will not affect their keyset- specific customization after 3.6.3. and vice versa. Inital patch by Charles Wohlganger, revised by Terry Jan Reedy.
* Simplify run_tests.py (#3482)Antoine Pitrou2017-09-101-5/+1
|
* bpo-28638: Optimize namedtuple() creation time by minimizing use of exec() ↵Raymond Hettinger2017-09-105-113/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#3454) * Working draft without _source * Re-use itemgetter() instances * Speed-up calls to __new__() with a pre-bound tuple.__new__() * Add note regarding string interning * Remove unnecessary create function wrappers * Minor sync-ups with PR-2736. Mostly formatting and f-strings * Bring-in qualname/__module fix-ups from PR-2736 * Formally remove the verbose flag and _source attribute * Restore a test of potentially problematic field names * Restore kwonly_args test but without the verbose option * Adopt Inada's idea to reuse the docstrings for the itemgetters * Neaten-up a bit * Add news blurb * Serhiy pointed-out the need for interning * Jelle noticed as missing f on an f-string * Add whatsnew entry for feature removal * Accede to request for dict literals instead keyword arguments * Leave the method.__module__ attribute pointing the actual location of the code * Improve variable names and add a micro-optimization for an non-public helper function * Simplify by in-lining reuse_itemgetter() * Arrange steps in more logical order * Save docstring in local cache instead of interning
* bpo-31406: Fix crash due to lack of type checking in subclassing. (#3477)Stefan Krah2017-09-101-5/+14
|
* Improve IncrementalEncoder documentation (GH-2746)Zhiming Wang2017-09-101-9/+9
| | | getstate and setstate are instance methods, same as encode and reset.
* bpo-31403: Remove WITHOUT_THREADS from _decimal. (#3474)Stefan Krah2017-09-092-113/+16
|
* Make `json.dumps()` example to be PEP-8 compliant. (GH-3472)Sergey Fedoseev2017-09-091-1/+1
|
* bpo-31392: Update SSL build for 1.1.0 (#3448)Steve Dower2017-09-0911-115/+74
|
* bpo-29639: change test.support.HOST to "localhost"Gregory P. Smith2017-09-096-35/+48
| | | | | | | | | | test.support.HOST should be "localhost" as it was in the past. See the bpo-29639. Tests that need the IP address should use HOSTv4 (added) or the existing HOSTv6 constant. This changes the definition and fixes tests that needed updating to deal with HOST being the hostname rather than the hardcoded IP address. This is only the first step in addressing https://bugs.python.org/issue29639.
* bpo-26669: Fix nan arg value error in pytime.c (#3085)Han Lee2017-09-082-0/+43
| | | | | | | | | | * Fix #26669 * Modify NaN check function and error message * Fix pytime.c when arg is nan * fix whitespace