summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33906: Rename idlelib.windows as window (GH-7833)Miss Islington (bot)2018-06-211-0/+2
| | | | | | | Match Window on the main menu and remove last plural module name. Change imports, test, and attribute references to match new name. (cherry picked from commit a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33917: Fix and document idlelib/idle_test/template.py (GH-7830)Miss Islington (bot)2018-06-201-0/+3
| | | | | | | The revised file compiles, runs, and tests OK. idle_test/README.txt explains how to use it to create new IDLE test files. (cherry picked from commit 87a927325e3856621790a39d8718ff24a19510aa) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)Miss Islington (bot)2018-06-201-0/+1
| | | | | (cherry picked from commit 9bb92235f6272b28d59fcbd04f101fdc6b1bbc50) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
* bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799)Miss Islington (bot)2018-06-201-0/+1
| | | | | | | | | | | | | | Only make sure that the result is in unittest.signals._results, don't check the full content of unittest.signals._results. support._run_suite() uses TextTestRunner in verbose mode, but TextTestRunner.run() calls registerResult(result) which made the test fail with "odd object in result set". Call also removeResult() to restore unittest.signals._results to avoid test side effect. (cherry picked from commit fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-33907: Rename an IDLE module and classes. (GH-7810)Miss Islington (bot)2018-06-201-3/+3
| | | | | | | | Fix-up class name duplication in PR GH-7807. Combined effect is that module calltips and its class CallTips are now calltip and Calltip. In module calltip_w class CallTip is now CalltipWindow. (cherry picked from commit 9af1836664d241fec6e62955ffaa559b3a2eaf1b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.6] bpo-33907: Rename an IDLE module and class. (GH-7807) (GH-7809)Terry Jan Reedy2018-06-201-0/+3
| | | | | | | | Improve consistency and appearance. Module idlelib.calltips is now calltip. Class idlelib.calltip_w.CallTip is now Calltip. (cherry picked from commit 06e2029dfa500a42e3565ed7ba8573412f153d1c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7798)Miss Islington (bot)2018-06-191-0/+2
| | | | | | | Fix test_dbm_gnu.test_reorganize() on macOS with gdbm 1.15: add a larger value to make sure that the file size changes. (cherry picked from commit 13c79c677f9ec9437c82eda72fa1c2d288d8fceb) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-33365: print the header values beside the keys (GH-6611)Miss Islington (bot)2018-06-191-0/+1
| | | | | | | | with debuglevel=1 only the header keys got printed. With this change the header values get printed as well and the single header entries get '\n' as a separator. (cherry picked from commit 936f03e7fafc28fd6fdfba11d162c776b89c0167) Co-authored-by: Marco Strigl <mstrigl@suse.com>
* bpo-33663: Convert content length to string before putting to header (GH-7754)Miss Islington (bot)2018-06-181-0/+1
| | | | | (cherry picked from commit b36b0a3765bcacb4dcdbf12060e9e99711855da8) Co-authored-by: ValeriyaSinevich <valeriya.sinevich@phystech.edu>
* bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)Miss Islington (bot)2018-06-161-0/+1
| | | | | | Make it the same as when one runs 'python'. (cherry picked from commit 9d49f85064c388e2dddb9f8cb4ae1f486bc8d357) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* [3.6] bpo-33855: Minimally test all IDLE modules. (GH-7689) (GH-7734)Terry Jan Reedy2018-06-161-0/+2
| | | | | | Create a template for minimally testing a tkinter-using module by importing it and instantiating its class(es). Add a test file for all non-startup IDLE modules. Edit existing files and update coverage. This is part 1 of 3, covering the 21 autocomplete to help modules and touching 33 idlelib files.. (cherry picked from commit ee5ef309c7e2daef1248730145408f700732c42e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Revert "bpo-32962: Fix test_gdb failure in debug build with -mcet ↵Victor Stinner2018-06-151-1/+0
| | | | | -fcf-protection -O0 (GH-6754)" (#7725) This reverts commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287.
* bpo-33847: Add '@' operator entry to index (GH-7669)Miss Islington (bot)2018-06-151-0/+1
| | | | | (cherry picked from commit 695118600fecaa7b95634e168ad7cbbc561fd1ec) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710) ↵Victor Stinner2018-06-153-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-7711) * bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692) python-gdb now catchs ValueError on read_var(): when Python has no debug symbols for example. (cherry picked from commit 019d33b7a447e78057842332fb5d3bad01922122) * bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693) python-gdb now catchs UnicodeDecodeError exceptions when calling string(). (cherry picked from commit d22fc0bc7de7882da204abe50884bbde2da4f9e7) * bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754) When Python is built with the intel control-flow protection flags, -mcet -fcf-protection, gdb is not able to read the stack without actually jumping inside the function. This means an extra 'next' command is required to make the $pc (program counter) enter the function and make the stack of the function exposed to gdb. (cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287) (cherry picked from commit ca4cb8492c643d1fcac2c5b749595ad5377673ab)
* bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)Miss Islington (bot)2018-06-151-0/+1
| | | | | | | | Hangul composition check boundaries are wrong for the second character ([0x1161, 0x1176) instead of [0x1161, 0x1176]) and third character ((0x11A7, 0x11C3) instead of [0x11A7, 0x11C3]). (cherry picked from commit d134809cd3764c6a634eab7bb8995e3e2eff14d5) Co-authored-by: Wonsup Yoon <pusnow@me.com>
* [3.6] bpo-32356: idempotent pause_/resume_reading (GH-4914) (GH-7629)Victor Stinner2018-06-131-0/+1
| | | | | Backport note: don't add new is_reading() method from master to 3.6. (cherry picked from commit d757aaf9dd767d13205bf9917e520ebf43e7f6e5)
* bpo-27397: Make email module properly handle invalid-length base64 strings ↵Miss Islington (bot)2018-06-121-0/+1
| | | | | | | | | | (GH-7583) (GH-7665) When attempting to base64-decode a payload of invalid length (1 mod 4), properly recognize and handle it. The given data will be returned as-is, i.e. not decoded, along with a new defect, InvalidBase64LengthDefect. (cherry picked from commit c3f55be7dd012b7e92901627d0b31c21e983ccb4) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* 3.6.6rc1v3.6.6rc1Ned Deily2018-06-1291-168/+885
|
* bpo-31432: Clarify ssl CERT_NONE/OPTIONAL/REQUIRED docs. (GH-3530) (GH-7652)Ned Deily2018-06-121-0/+2
| | | | | | | | The documentation for CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED were misleading and partly wrong. It fails to explain that OpenSSL behaves differently in client and server mode. Also OpenSSL does validate the cert chain everytime. With SSL_VERIFY_NONE a validation error is not fatal in client mode and does not request a client cert in server mode. Also discourage people from using CERT_OPTIONAL in client mode.
* bpo-33656: On Windows, add API call saying that tk scales for DPI (GH-7137)Miss Islington (bot)2018-06-111-0/+4
| | | | | | | | | | | | | | On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary unchanged, and a monitor resolution greater than 96 DPI, this should make text and lines sharper. It should otherwise have no effect. Using a magnifier, I determined that the improvement comes from horizontal and lines being better lined up with the monitor pixels. I checked that this call causes no problem on any Windows buildbot, including the Win7 buildbots. Unlike most IDLE patches, this one can be easily reverted by users by removing a few lines, at the top of idlelib/pyshell.py. (cherry picked from commit 800415e3df69f494afe9f95a8563ce17609fe1da) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) ↵Miss Islington (bot)2018-06-111-0/+1
| | | | | | | | (GH-7607) Before Python 3.6, os.path.abspath(None) used to report an AttributeError which was properly caught inside site.abs_paths, making it ignore __main__, one of sys.modules, which has __file__ and __cached__ set to None. With 3.6, os.path.abspath(None) raises TypeError instead which site.abs_path was not expecting. This resulted in an uncaught exception if a user had PYTHONSTARTUP set and the application called site.main() which a number of third-party programs do. (cherry picked from commit 2487f30d5529948ace26559e274d7cac6abcd1a8) Co-authored-by: Steve Weber <steverweber@gmail.com>
* bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7601)Miss Islington (bot)2018-06-101-0/+2
| | | | | | | | | | | | | | | | | | | | | A datetime object d is aware if d.tzinfo is not None and d.tzinfo.utcoffset(d) does not return None. If d.tzinfo is None, or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns None, d is naive. This commit ensures that instances with non-None d.tzinfo, but d.tzinfo.utcoffset(d) returning None are treated as naive. In addition, C acceleration code will raise TypeError if d.tzinfo.utcoffset(d) returns an object with the type other than timedelta. * Updated the documentation. Assume that the term "naive" is defined elsewhere and remove the not entirely correct clarification. Thanks, Tim. (cherry picked from commit 877b23202b7e7d4f57b58504fd0eb886e8c0b377) Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
* [3.6] Fix spaces added after hyphens in news entries. (GH-7579) (GH-7584)Serhiy Storchaka2018-06-105-7/+7
| | | | Seems they were added by double applying blurb. (cherry picked from commit 98a0e466cd94d4635769cfdfd397c43c07384595)
* bpo-30805: Avoid race condition with debug logging (GH-7545)Miss Islington (bot)2018-06-081-0/+1
| | | | | | Supersedes https://github.com/python/cpython/pull/2490 (cherry picked from commit 12f482e0ae33021c04264294f33fa6baa9617cec) Co-authored-by: Yury Selivanov <yury@magic.io>
* bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)Miss Islington (bot)2018-06-081-0/+2
| | | | | | | | - bugfix and test for fragile metavar handling in argparse (see bpo-24089, bpo-14046, bpo-25058, bpo-11874) - also fixes some incorrect tests that did not make 1-element tuples correctly (cherry picked from commit 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b) Co-authored-by: wim glenn <wim.glenn@gmail.com>
* bpo-33768: IDLE: Clicking on code context line moves it to top of editor ↵Miss Islington (bot)2018-06-081-0/+1
| | | | | | | (GH-7411) (cherry picked from commit 041272b657867f5bec925b19aabf23944125d49b) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() ↵Yury Selivanov2018-06-081-0/+1
| | | | (GH-7467) (GH-7507)
* bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)Miss Islington (bot)2018-06-072-21/+5
| | | | | (cherry picked from commit bed523ba03c4525c9c79a6df700284b6c43024b3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)INADA Naoki2018-06-061-0/+3
| | | (cherry picked from commit e33648484775fa533fc8f1e5cc45f60061d29d54)
* bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)Miss Islington (bot)2018-06-051-0/+3
| | | | | | Raise TypeError instead of SystemError for unsupported operations. (cherry picked from commit e9e397605789b2a67b67558fbbe756b7b88934f5) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Enable the verbose build for extension modules with GNU make (GH-6659)Miss Islington (bot)2018-06-041-0/+2
| | | | | (cherry picked from commit 10f715d71218ece737f990fa55027b8e1120cc3a) Co-authored-by: Matthias Klose <doko42@users.noreply.github.com>
* bpo-31849: Fix warning in pyhash.c (GH-6799)Miss Islington (bot)2018-06-041-0/+1
| | | | | (cherry picked from commit a8eb58546b37a7cd5f332f019bb07388f5212c2d) Co-authored-by: A. Jesse Jiryu Davis <jesse@emptysquare.net>
* bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)Miss Islington (bot)2018-06-041-0/+1
| | | | | (cherry picked from commit b609e687a076d77bdd687f5e4def85e29a044bfc) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33664: Scroll IDLE editor text by lines (GH-7351)Miss Islington (bot)2018-06-041-0/+5
| | | | | | | | | Previously, the mouse wheel and scrollbar slider moved text by a fixed number of pixels, resulting in partial lines at the top of the editor box. The change also applies to the shell and grep output windows, but not to read-only text views. (cherry picked from commit d49dbd9acc6db544ca6cb2445fe17eb0c3be4bba) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)Miss Islington (bot)2018-06-021-0/+12
| | | | | | | | | | | | | | | | The difference from before is that the settings are now on the Highlights tab instead of the Extensions tab and only change one theme at a time instead of all themes. The default for light themes is black on light gray, as before. The default for the IDLE Dark theme is white on dark gray, which better fits the dark theme. When one starts IDLE from a console and loads a custom theme without definitions for 'context', one will see a warning message on the console. To stop the warning, go to Options => Configure IDLE => Highlights, select the custom theme if not selected already, select 'Code Context', and select foreground and background colors. (cherry picked from commit de6516264e793be991f692fdd892707afb9104a7) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)Miss Islington (bot)2018-06-021-0/+9
| | | | | | | | | | | | | Instead of displaying a fixed number of lines, some blank, Code Context now displays the variable number of actual context lines. When there are no context lines, it shows a single blank line to indicate that the feature is turned on. The Code Context configuration option is changed from 'numlines' (default 3) to 'maxlines' (default 15) to avoid possible interference between user settings for the old and new versions of Code Context. (cherry picked from commit 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-31238: pydoc ServerThread.stop() now joins itself (GH-3151) (GH-7324)Victor Stinner2018-06-011-0/+3
| | | | | | | ServerThread.stop() now joins itself to wait until DocServer.serve_until_quit() completes and then explicitly sets its docserver attribute to None to break a reference cycle. (cherry picked from commit 4cab2cd0c05fcda5fcb128c9eb230253fff88c21)
* bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) ↵Miss Islington (bot)2018-06-011-0/+2
| | | | | | | (GH-7307) (cherry picked from commit e905c84494526363086f66a979e317e155bf9536) Co-authored-by: pkerling <pkerling@casix.org>
* bpo-32684: Fix gather to propagate cancel of itself with return_exceptions ↵Yury Selivanov2018-05-291-0/+1
| | | | (GH-7224)
* bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) ↵Miss Islington (bot)2018-05-291-0/+2
| | | | | | | (#7205) (cherry picked from commit a9cab433bbf02f3a1de59d14dc8f583181ffe2d5) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7180)Yury Selivanov2018-05-291-0/+1
| | | [3.6 backport of 989b9e0]
* bpo-33674: asyncio: Fix SSLProtocol race (GH-7175) (GH-7188)Victor Stinner2018-05-291-0/+4
| | | | | | | | Fix a race condition in SSLProtocol.connection_made() of asyncio.sslproto: start immediately the handshake instead of using call_soon(). Previously, data_received() could be called before the handshake started, causing the handshake to hang or fail. (cherry picked from commit be00a5583a2cb696335c527b921d1868266a42c6)
* bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)Miss Islington (bot)2018-05-291-0/+1
| | | | | (cherry picked from commit fdccfe09f0b10776645fdb04a0783d6864c32b21) Co-authored-by: Yury Selivanov <yury@magic.io>
* bpo-31647: Fix write_eof() after close() for SelectorSocketTransport ↵Miss Islington (bot)2018-05-281-0/+2
| | | | | | | | | (GH-7149) (#7154) Fixed bug where calling write_eof() on a _SelectorSocketTransport after it's already closed raises AttributeError. (cherry picked from commit 23f587e395e41bd5e116312b036183f42bc4159b) Co-authored-by: twisteroid ambassador <twisteroidambassador@users.noreply.github.com>
* bpo-33614: Ensures module definition files for the stable ABI on Windows are ↵Miss Islington (bot)2018-05-281-0/+2
| | | | | | | correctly regenerated. (GH-7165) (cherry picked from commit e97ba4c690613d734843db218aeedce2f0e5937f) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-33655: Also ignore test_posix_fallocate failures on BSD platforms (GH-7134)Miss Islington (bot)2018-05-261-0/+2
| | | | | | | The failure may be due to the use oF ZFS, a case we already ignore for Solaris-based systems where ZFS is frequently used. (cherry picked from commit 09c4a7dee2eb39b515e5f499f184257cdbe9cb42) Co-authored-by: Ned Deily <nad@python.org>
* bpo-33012: Add -Wno-cast-function-type for gcc 8. (GH-6757)Miss Islington (bot)2018-05-251-0/+2
| | | | | (cherry picked from commit ef91ddeae79497fac25545dd68ee55a5a3c60e8d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-26819: Prevent proactor double read on resume (GH-6921) (#7110)CtrlZvi2018-05-251-0/+2
| | | | | | | | | | | | | The proactor event loop has a race condition when reading with pausing/resuming. `resume_reading()` unconditionally schedules the read function to read from the current future. If `resume_reading()` was called before the previously scheduled done callback fires, this results in two attempts to get the data from the most recent read and an assertion failure. This commit tracks whether or not `resume_reading` needs to reschedule the callback to restart the loop, preventing a second attempt to read the data.. (cherry picked from commit 4151061855b571bf8a7579daa7875b8e243057b9) Co-authored-by: CtrlZvi <viz+github@flippedperspective.com>
* [3.6] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (GH-7095)Serhiy Storchaka2018-05-241-0/+4
| | | | | | | | | * Fixed a leak when the GC fails to add an object with __del__ into the gc.garbage list. * PyGC_Collect() can now be called when an exception is set and preserves it. * Fixed an undefined behavior with comparing a dead pointer with NULL. (cherry picked from commit 301e3cc8a5bc68c5347ab6ac6f83428000d31ab2)
* bpo-33628: IDLE: Minor code cleanup of codecontext.py and its tests (GH-7085)Miss Islington (bot)2018-05-241-0/+2
| | | | | (cherry picked from commit 8506016f904ba6bc27bf5261f27a0bdd5945cd26) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>