summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* 3.6.6 finalv3.6.6Ned Deily2018-06-261-0/+8
|
* 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>
* pypi.python.org -> pypi.org (GH-7613) (GH-7615)Miss Islington (bot)2018-06-111-1/+1
| | | | | (cherry picked from commit 9d6d06e8065d45f375f4a80e2d7e13b032da1f5b) Co-authored-by: Ned Deily <nad@python.org>
* bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) ↵Miss Islington (bot)2018-06-112-0/+2
| | | | | | | | (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>
* bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048)Miss Islington (bot)2018-05-221-0/+3
| | | | | (cherry picked from commit ae00fb1d4f38ea1803b10d798564740adcdad63e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] Fix line breaks added after hyphens by blurb. (GH-7002) (GH-7051)Serhiy Storchaka2018-05-2214-70/+70
| | | | | Also remove bullet asterisks from IDLE entries. (cherry picked from commit aef639f62677f8a342af24e9c19f0503b0d1e36e)
* [3.6] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7014)Serhiy Storchaka2018-05-212-0/+3
| | | | | | | | | uuid._ipconfig_getnode did not validate the maximum length of the value, so long as the value had the same type of formatting as a MAC address. This let it select DUIDs as MAC addresses. It now requires an exact length match. (cherry picked from commit c66c342cb42ab8a88884527ddfe3a5086bc06316) Co-authored-by: CtrlZvi <viz+github@flippedperspective.com>
* [3.6] bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7025)Andrew Svetlov2018-05-211-0/+1
| | | | | | | | | * bpo-33263 Fix FD leak in _SelectorSocketTransport. (GH-6450) Under particular circumstances _SelectorSocketTransport can try to add a reader even the transport is already being closed. This can lead to FD leak and invalid stated of the following connections. Fixed the SelectorSocketTransport to add the reader only if the trasport is still active.. (cherry picked from commit a84d0b361a26c05c6fadc6640591ec3feee5bfb5)
* bpo-32831: IDLE: Add docstrings and tests for codecontext (GH-5638)Miss Islington (bot)2018-05-191-0/+1
| | | | | (cherry picked from commit 654038d896d78a8373b60184f335acd516215acd) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32282: Remove unnecessary check for `VersionHelpers.h` in ↵Miss Islington (bot)2018-05-181-0/+2
| | | | | `socketmodule.c` on Windows (GH-5120) (cherry picked from commit af11a15c586e980a157c04ee60b6e33dc7228f3f)
* bpo-33564: Add async to IDLE's code context block openers. (GH-6960)Miss Islington (bot)2018-05-181-0/+1
| | | | | (cherry picked from commit d89ca94847d943b883ebcc68e4f0a18cb042ed0d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925)Steve Dower2018-05-172-0/+3
|
* [3.6] bpo-33503: Fix the broken pypi link in the source and the ↵Stéphane Wirtel2018-05-161-0/+1
| | | | | | | documentation (GH-6814) (GH-6885) (cherry picked from commit 19177fbd5d6d9b29ccc302d65f9d9417ece082ce) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* [3.6] bpo-29706: IDLE now colors async and await as keywords in 3.6. (#6879)Terry Jan Reedy2018-05-161-0/+2
| | | They become full keywords in 3.7.
* bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)Miss Islington (bot)2018-05-151-0/+1
| | | | | (cherry picked from commit 735abadd5bd91db4a9e6f4311969b0afacca0a1a) Co-authored-by: Segev Finer <segev208@gmail.com>
* Add AsyncContextManager to typing module documentation. (GH-6823)Travis DePrato2018-05-151-0/+1
|
* [3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. ↵Miss Islington (bot)2018-05-141-0/+3
| | | | | | | | | | (GH-5711) (GH-6795) (GH-6818) The urllib.robotparser's __str__ representation now includes wildcard entries and the "Crawl-delay" and "Request-rate" fields. (cherry picked from commit c3fa1f2b93fa4bf96a8aadc74ee196384cefa31e) Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>
* bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)Miss Islington (bot)2018-05-131-0/+1
| | | | | | | | | | The hash implementation casts the input pointer to uint64_t* and directly reads from this, which may cause unaligned accesses. Use memcpy() instead so this code will not crash with SIGBUS on sparc. https://bugs.gentoo.org/show_bug.cgi?id=636400 (cherry picked from commit 1e2ec8a996daec65d8d5a3d43b66a9909c6d0653) Co-authored-by: Rolf Eike Beer <eike@sf-mail.de>
* Backport recent typing updates (GH-6759)Ivan Levkivskyi2018-05-111-0/+3
|