]> granicus.if.org Git - python/log
python
6 years agocontrolflow: Use full example for "5 through 9" (GH-5907)
Steven M. Vascellaro [Fri, 9 Mar 2018 19:57:21 +0000 (14:57 -0500)]
controlflow: Use full example for "5 through 9" (GH-5907)

Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9".
This format is more consistent with the surrounding examples.

6 years agobpo-33016: Fix potential use of uninitialized memory in nt._getfinalpathname (#6010)
Alexey Izbyshev [Thu, 8 Mar 2018 16:03:25 +0000 (19:03 +0300)]
bpo-33016: Fix potential use of uninitialized memory in nt._getfinalpathname (#6010)

6 years agoAdd two missing error checks in hamt.c (GH-5851)
Xiang Zhang [Thu, 8 Mar 2018 05:59:46 +0000 (13:59 +0800)]
Add two missing error checks in hamt.c (GH-5851)

6 years agoFix some ipaddress documentation errors (GH-6021)
Xiang Zhang [Thu, 8 Mar 2018 04:24:36 +0000 (12:24 +0800)]
Fix some ipaddress documentation errors (GH-6021)

* fix a typo: documention -> documentation
* fix the type of IPv?Network.hostmask
* add documentation about IPv?Network.netmask
* fix IPv6Network constructor doc that extended netmasks are not supported

6 years agobpo-32999: Fix ABC.__subclasscheck__ crash (GH-6002)
INADA Naoki [Wed, 7 Mar 2018 07:27:01 +0000 (16:27 +0900)]
bpo-32999: Fix ABC.__subclasscheck__ crash (GH-6002)

6 years agobpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988)
Xiang Zhang [Wed, 7 Mar 2018 05:05:37 +0000 (13:05 +0800)]
bpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988)

6 years agobpo-33009: Fix inspect.signature() for single-parameter partialmethods. (GH-6004)
Yury Selivanov [Tue, 6 Mar 2018 17:59:45 +0000 (12:59 -0500)]
bpo-33009: Fix inspect.signature() for single-parameter partialmethods. (GH-6004)

6 years agobpo-33005: Fix _PyGILState_Reinit() (#6001)
Victor Stinner [Tue, 6 Mar 2018 13:31:37 +0000 (14:31 +0100)]
bpo-33005: Fix _PyGILState_Reinit() (#6001)

Fix a crash on fork when using a custom memory allocator (ex: using
PYTHONMALLOC env var).

_PyGILState_Reinit() and _PyInterpreterState_Enable() now use the
default RAW memory allocator to allocate a new interpreters mutex on
fork.

6 years agoFix strncpy warning with gcc 8 (#5840)
Siddhesh Poyarekar [Tue, 6 Mar 2018 10:34:35 +0000 (16:04 +0530)]
Fix strncpy warning with gcc 8 (#5840)

The length in strncpy is one char too short and as a result it leads
to a build warning with gcc 8.  Comment out the strncpy since the
interpreter aborts immediately after anyway.

6 years agobpo-32991: Restore expectation that inspect.getfile raises TypeError on namespace...
Jason R. Coombs [Mon, 5 Mar 2018 23:29:08 +0000 (18:29 -0500)]
bpo-32991: Restore expectation that inspect.getfile raises TypeError on namespace package (GH-5980)

* bpo-32991: Add test capturing expectation.

DocTestFinder.find should return an empty list for doctests in a namespace package.

* bpo-32991: Restore expectation that inspect.getfile on a namespace package raises TypeError.

6 years agobpo-33001: Prevent buffer overrun in os.symlink (GH-5989)
Steve Dower [Mon, 5 Mar 2018 22:26:08 +0000 (14:26 -0800)]
bpo-33001: Prevent buffer overrun in os.symlink (GH-5989)

6 years agoAdd What's New for issues 32303 and 32305 (GH-5994)
Barry Warsaw [Mon, 5 Mar 2018 20:37:12 +0000 (12:37 -0800)]
Add What's New for issues 32303 and 32305 (GH-5994)

6 years agobpo-32984: IDLE - set __file__ for startup files (GH-5981)
Terry Jan Reedy [Mon, 5 Mar 2018 16:02:46 +0000 (11:02 -0500)]
bpo-32984: IDLE - set __file__ for startup files (GH-5981)

Like Python, IDLE optionally runs one startup file in the Shell window
before presenting the first interactive input prompt.  For IDLE,
option -s runs a file named in environmental variable IDLESTARTUP or
PYTHONSTARTUP; -r file runs file.  Python sets __file__ to the startup
file name before running the file and unsets it before the first
prompt.  IDLE now does the same when run normally, without the -n
option.

6 years agobpo-30147: Add re.escape changes to 3.7 What's New (GH-5978)
Cheryl Sabella [Sun, 4 Mar 2018 23:06:57 +0000 (18:06 -0500)]
bpo-30147: Add re.escape changes to 3.7 What's New (GH-5978)

6 years agobpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701)
Cheryl Sabella [Sun, 4 Mar 2018 10:41:47 +0000 (05:41 -0500)]
bpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701)

6 years agocloses bpo-32980 Remove _PyFrame_Init (GH-5965)
Thomas Nyberg [Sun, 4 Mar 2018 06:06:01 +0000 (07:06 +0100)]
closes bpo-32980 Remove _PyFrame_Init (GH-5965)

6 years agobpo-32981: Fix catastrophic backtracking vulns (#5955)
Jamie Davis [Sun, 4 Mar 2018 05:33:32 +0000 (00:33 -0500)]
bpo-32981: Fix catastrophic backtracking vulns (#5955)

* Prevent low-grade poplib REDOS (CVE-2018-1060)

The regex to test a mail server's timestamp is susceptible to
catastrophic backtracking on long evil responses from the server.

Happily, the maximum length of malicious inputs is 2K thanks
to a limit introduced in the fix for CVE-2013-1752.

A 2KB evil response from the mail server would result in small slowdowns
(milliseconds vs. microseconds) accumulated over many apop calls.
This is a potential DOS vector via accumulated slowdowns.

Replace it with a similar non-vulnerable regex.

The new regex is RFC compliant.
The old regex was non-compliant in edge cases.

* Prevent difflib REDOS (CVE-2018-1061)

The default regex for IS_LINE_JUNK is susceptible to
catastrophic backtracking.
This is a potential DOS vector.

Replace it with an equivalent non-vulnerable regex.

Also introduce unit and REDOS tests for difflib.

Co-authored-by: Tim Peters <tim.peters@gmail.com>
Co-authored-by: Christian Heimes <christian@python.org>
6 years agoFix missing coroutine declaration in the asyncio documentation. (#5964)
Joongi Kim [Sat, 3 Mar 2018 16:43:54 +0000 (01:43 +0900)]
Fix missing coroutine declaration in the asyncio documentation. (#5964)

6 years agobpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)
Serhiy Storchaka [Fri, 2 Mar 2018 09:53:51 +0000 (11:53 +0200)]
bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)

6 years agobpo-30607: Use external python-doc-theme (GH-2017)
Jon Wayne Parrott [Thu, 1 Mar 2018 21:02:50 +0000 (13:02 -0800)]
bpo-30607: Use external python-doc-theme (GH-2017)

6 years agoFixed incorrect default value for dataclass unsafe_hash. (GH-5949)
Eric V. Smith [Thu, 1 Mar 2018 13:01:41 +0000 (08:01 -0500)]
Fixed incorrect default value for dataclass unsafe_hash. (GH-5949)

6 years agobpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801)
Alexey Izbyshev [Thu, 1 Mar 2018 09:13:56 +0000 (12:13 +0300)]
bpo-32903: Fix a memory leak in os.chdir() on Windows (GH-5801)

6 years agoFix typo in logging doc: picked -> pickled (GH-5942)
James Walker [Wed, 28 Feb 2018 23:46:35 +0000 (19:46 -0400)]
Fix typo in logging doc: picked -> pickled (GH-5942)

6 years agobpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)
Cheryl Sabella [Wed, 28 Feb 2018 22:23:58 +0000 (17:23 -0500)]
bpo-32940: IDLE: Simplify StringTranslatePseudoMapping in pyparse (GH-5862)

The new code also runs faster.

6 years agoFix 3.8 whatsnew changelog link
Ned Deily [Wed, 28 Feb 2018 18:58:38 +0000 (13:58 -0500)]
Fix 3.8 whatsnew changelog link

6 years agoMinor improvements to the Windows build/release process (GH-5935)
Steve Dower [Wed, 28 Feb 2018 06:09:27 +0000 (22:09 -0800)]
Minor improvements to the Windows build/release process (GH-5935)

6 years agobpo-30928: Update idlelib/NEWS.txt, possibly for 3.7.0b2 (GH-5932)
Terry Jan Reedy [Tue, 27 Feb 2018 23:36:21 +0000 (18:36 -0500)]
bpo-30928:  Update idlelib/NEWS.txt, possibly for 3.7.0b2  (GH-5932)

6 years agoRevert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (#5912)
Serhiy Storchaka [Tue, 27 Feb 2018 23:03:46 +0000 (01:03 +0200)]
Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (#5912)

* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"

This reverts commit dd42cb71f2cb02f3a32f016137b12a146bc0d0e2.

6 years agoUpdate macOS installer resources
Ned Deily [Tue, 27 Feb 2018 22:39:50 +0000 (17:39 -0500)]
Update macOS installer resources

6 years agobpo-32901: update macOS 10.9+ installer to Tcl/Tk 8.6.8
Ned Deily [Tue, 27 Feb 2018 22:36:12 +0000 (17:36 -0500)]
bpo-32901: update macOS 10.9+ installer to Tcl/Tk 8.6.8

6 years agobpo-31355: Travis-CI: re-enable macOS job (#5858)
Antoine Pitrou [Tue, 27 Feb 2018 20:40:37 +0000 (21:40 +0100)]
bpo-31355: Travis-CI: re-enable macOS job (#5858)

The long build queues that plagued macOS builds on Travis seem to be
a thing of the past now.

6 years agobpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814)
Paul Ganssle [Tue, 27 Feb 2018 19:41:30 +0000 (14:41 -0500)]
bpo-10381, bpo-32403: What's new entries for changes to datetime (gh-5814)

* Add What's New entry for addition of datetime.timezone to the C API

Closes bpo-10381

* Add what's new entry for date and datetime optimizations

Closes bpo-32403

6 years agobpo-31453: Add setter for min/max protocol version (#5259)
Christian Heimes [Tue, 27 Feb 2018 10:54:43 +0000 (11:54 +0100)]
bpo-31453: Add setter for min/max protocol version (#5259)

OpenSSL 1.1 has introduced a new API to set the minimum and maximum
supported protocol version. The API is easier to use than the old
OP_NO_TLS1 option flags, too.

Since OpenSSL has no call to set minimum version to highest supported,
the implementation emulate maximum_version = MINIMUM_SUPPORTED and
minimum_version = MAXIMUM_SUPPORTED by figuring out the minumum and
maximum supported version at compile time.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-32951: Disable SSLSocket/SSLObject constructor (#5864)
Christian Heimes [Tue, 27 Feb 2018 09:17:30 +0000 (10:17 +0100)]
bpo-32951: Disable SSLSocket/SSLObject constructor (#5864)

Direct instantiation of SSLSocket and SSLObject objects is now prohibited.
The constructors were never documented, tested, or designed as public
constructors. The SSLSocket constructor had limitations. For example it was
not possible to enabled hostname verification except was
ssl_version=PROTOCOL_TLS_CLIENT with cert_reqs=CERT_REQUIRED.

SSLContext.wrap_socket() and SSLContext.wrap_bio are the recommended API
to construct SSLSocket and SSLObject instances. ssl.wrap_socket() is
also deprecated.

The only test case for direct instantiation was added a couple of days
ago for IDNA testing.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-28124: deprecate ssl.wrap_socket() (#5888)
Christian Heimes [Tue, 27 Feb 2018 08:21:34 +0000 (09:21 +0100)]
bpo-28124: deprecate ssl.wrap_socket() (#5888)

The ssl module function ssl.wrap_socket() has been de-emphasized
and deprecated in favor of the more secure and efficient
SSLContext.wrap_socket() method.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes (#5663)
Christian Heimes [Tue, 27 Feb 2018 07:55:39 +0000 (08:55 +0100)]
bpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes (#5663)

* bpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes

Misc fixes and workarounds for compatibility with OpenSSL 1.1.1-pre1 and
TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by
default. Some test cases only apply to TLS 1.2. Other tests currently
fail because the threaded or async test servers stop after failure.

I'm going to address these issues when OpenSSL 1.1.1 reaches beta.

OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS
1.3. The feature is enabled by default for maximum compatibility with
broken middle boxes. Users should be able to disable the hack and CPython's test suite needs
it to verify default options.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and...
Eric V. Smith [Tue, 27 Feb 2018 01:38:33 +0000 (20:38 -0500)]
bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and vice-versa, (GH-5919)

This restriction will be relaxed at a future date.

6 years agobpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)
Joffrey F [Tue, 27 Feb 2018 00:02:21 +0000 (16:02 -0800)]
bpo-32713: Fix tarfile.itn for large/negative float values. (GH-5434)

6 years agobpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)
Tobotimus [Mon, 26 Feb 2018 22:48:14 +0000 (09:48 +1100)]
bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)

6 years agobpo-32836: Remove obsolete code from symtable pass (GH-5680)
Nitish Chandra [Mon, 26 Feb 2018 21:31:20 +0000 (03:01 +0530)]
bpo-32836: Remove obsolete code from symtable pass (GH-5680)

When comprehensions switched to using a nested scope, the old
code for generating a temporary name to hold the accumulation
target became redundant, but was never actually removed.

Patch by Nitish Chandra.

6 years agobpo-32147: Improved perfomance of binascii.unhexlify(). (GH-4586)
Sergey Fedoseev [Mon, 26 Feb 2018 20:35:41 +0000 (01:35 +0500)]
bpo-32147: Improved perfomance of binascii.unhexlify(). (GH-4586)

6 years agobpo-32394: Remove some TCP options on old version Windows. (GH-5523)
animalize [Mon, 26 Feb 2018 18:10:36 +0000 (02:10 +0800)]
bpo-32394: Remove some TCP options on old version Windows. (GH-5523)

6 years agoRevert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
Serhiy Storchaka [Mon, 26 Feb 2018 14:50:11 +0000 (16:50 +0200)]
Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)

6 years agobpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH-5832)
Serhiy Storchaka [Mon, 26 Feb 2018 14:02:22 +0000 (16:02 +0200)]
bpo-32922: dbm.open() now encodes filename with the filesystem encoding. (GH-5832)

6 years agoFix 'deecorator' typo in test/test_dataclasses (GH-5899)
Terry Jan Reedy [Mon, 26 Feb 2018 02:38:18 +0000 (21:38 -0500)]
Fix 'deecorator' typo in test/test_dataclasses (GH-5899)

6 years agobpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_has...
Eric V. Smith [Mon, 26 Feb 2018 02:30:17 +0000 (21:30 -0500)]
bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (#5891)

unsafe_hash=False is now the default. It is the same behavior as the old hash=None parameter. unsafe_hash=True will try to add __hash__. If it already exists, TypeError is raised.

6 years agoUpdate PR template file, don't reference bpo 12345 (GH-5897)
Mariatta [Sun, 25 Feb 2018 20:49:02 +0000 (12:49 -0800)]
Update PR template file, don't reference bpo 12345 (GH-5897)

Fixes https://github.com/python/core-workflow/issues/223

6 years agobpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)
Mario Corchero [Sun, 25 Feb 2018 19:11:12 +0000 (19:11 +0000)]
bpo-31454: Include information about "import X as Y" in Modules tutorial (GH-4041)

6 years agobpo-25059: Clarify the print separator usage in tutorial (GH-5879)
Cheryl Sabella [Sun, 25 Feb 2018 19:06:01 +0000 (14:06 -0500)]
bpo-25059: Clarify the print separator usage in tutorial (GH-5879)

By default `print` adds spaces between its arguments.

6 years agobpo-32622: Native sendfile on windows (#5565)
Andrew Svetlov [Sun, 25 Feb 2018 16:32:14 +0000 (19:32 +0300)]
bpo-32622: Native sendfile on windows (#5565)

* Support sendfile on Windows Proactor event loop naively.

6 years agoDelete a broken threading.local example (#5870)
Aaron Gallagher [Sun, 25 Feb 2018 15:03:40 +0000 (07:03 -0800)]
Delete a broken threading.local example (#5870)

This code never did anything correct or useful. The class attribute will never be affected, and the condition will never be true.

6 years agobpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (#5876)
Christian Heimes [Sun, 25 Feb 2018 11:31:33 +0000 (12:31 +0100)]
bpo-30622: Fix NPN for OpenSSL 1.1.1-pre1 (#5876)

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-32647: Link ctypes extension with libdl. (#5550)
Christian Heimes [Sun, 25 Feb 2018 09:22:14 +0000 (10:22 +0100)]
bpo-32647: Link ctypes extension with libdl. (#5550)

The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-31809: test secp ECDH curves (#4036)
Christian Heimes [Sun, 25 Feb 2018 08:49:31 +0000 (09:49 +0100)]
bpo-31809: test secp ECDH curves (#4036)

Add tests to verify connection with secp384r1 ECDH curves.

6 years agobpo-17232: Clarify docs for -O and -OO command line options (#5839)
Cheryl Sabella [Sun, 25 Feb 2018 03:04:40 +0000 (22:04 -0500)]
bpo-17232: Clarify docs for -O and -OO command line options (#5839)

The 'optimization' is for space in the executable file, not for run time.

6 years agobpo-30622: Improve NPN support detection (#5859)
Christian Heimes [Sat, 24 Feb 2018 21:12:40 +0000 (22:12 +0100)]
bpo-30622: Improve NPN support detection (#5859)

The ssl module now detects missing NPN support in LibreSSL.

Co-Authored-By: Bernard Spil <brnrd@FreeBSD.org>
Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-24334: Cleanup SSLSocket (#5252)
Christian Heimes [Sat, 24 Feb 2018 20:10:57 +0000 (21:10 +0100)]
bpo-24334: Cleanup SSLSocket (#5252)

* The SSLSocket is no longer implemented on top of SSLObject to
  avoid an extra level of indirection.
* Owner and session are now handled in the internal constructor.
* _ssl._SSLSocket now uses the same method names as SSLSocket and
  SSLObject.
* Channel binding type check is now handled in C code. Channel binding
  is always available.

The patch also changes the signature of SSLObject.__init__(). In my
opinion it's fine. A SSLObject is not a user-constructable object.
SSLContext.wrap_bio() is the only valid factory.

6 years agoremove vestigal locking from obmalloc (GH-5805)
Benjamin Peterson [Sat, 24 Feb 2018 19:59:10 +0000 (11:59 -0800)]
remove vestigal locking from obmalloc (GH-5805)

obmalloc has (empty) macros for locking in the allocator. These aren't needed in CPython; we rely on the GIL.

6 years agobpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855)
Ned Deily [Sat, 24 Feb 2018 19:30:44 +0000 (14:30 -0500)]
bpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855)

6 years agobpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)
Serhiy Storchaka [Sat, 24 Feb 2018 16:55:51 +0000 (18:55 +0200)]
bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)

6 years agobpo-32819: Simplify and improve ssl.match_hostname (#5620)
Christian Heimes [Sat, 24 Feb 2018 13:35:56 +0000 (14:35 +0100)]
bpo-32819: Simplify and improve ssl.match_hostname (#5620)

ssl.match_hostname() has been simplified and no longer depends on re and
ipaddress module for wildcard and IP addresses. Error reporting for invalid
wildcards has been improved.

Signed-off-by: Christian Heimes <christian@python.org>
6 years agobpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)
Cheryl Sabella [Sat, 24 Feb 2018 02:35:27 +0000 (21:35 -0500)]
bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)

Adjust tests and user modules to match.

6 years ago[bpo-28414] Make all hostnames in SSL module IDN A-labels (GH-5128)
Christian Heimes [Sat, 24 Feb 2018 01:35:08 +0000 (02:35 +0100)]
[bpo-28414] Make all hostnames in SSL module IDN A-labels (GH-5128)

Previously, the ssl module stored international domain names (IDNs)
as U-labels. This is problematic for a number of reasons -- for
example, it made it impossible for users to use a different version
of IDNA than the one built into Python.

After this change, we always convert to A-labels as soon as possible,
and use them for all internal processing. In particular, server_hostname
attribute is now an A-label, and on the server side there's a new
sni_callback that receives the SNI servername as an A-label rather than
a U-label.

6 years agoUpdate the Pull_request_template.md file (GH-5841)
Mariatta [Fri, 23 Feb 2018 23:48:21 +0000 (15:48 -0800)]
Update the Pull_request_template.md file (GH-5841)

Changed the template to be inside a comment tag.

6 years agoExhaustively test dataclass hashing when no hash= value is provided. This is in antic...
Eric V. Smith [Fri, 23 Feb 2018 18:01:31 +0000 (13:01 -0500)]
Exhaustively test dataclass hashing when no hash= value is provided. This is in anticipation of changing how non-default hashing is handled. (#5834)

6 years agobpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)
Mariatta [Fri, 23 Feb 2018 17:51:11 +0000 (09:51 -0800)]
bpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)

`whilst` and `while` are both english words, `whilst` is not as commonly used.
This can be confusing to readers whose primary language is not english.

6 years agobpo-32901: Update Tcl and Tk versions to 8.6.8 (GH-5823)
Steve Dower [Fri, 23 Feb 2018 16:22:10 +0000 (08:22 -0800)]
bpo-32901: Update Tcl and Tk versions to 8.6.8 (GH-5823)

6 years agobpo-32087: Doc: Make "deprecated-removed" directive translatable (GH-4473)
cocoatomo [Fri, 23 Feb 2018 11:47:19 +0000 (20:47 +0900)]
bpo-32087: Doc: Make "deprecated-removed"  directive translatable (GH-4473)

6 years agoipaddress: Use str.isascii() instead of frozenset (GH-5811)
INADA Naoki [Fri, 23 Feb 2018 11:02:41 +0000 (20:02 +0900)]
ipaddress: Use str.isascii() instead of frozenset (GH-5811)

6 years agobpo-30028: make test.support.temp_cwd() fork-safe (GH-1066)
Anselm Kruis [Fri, 23 Feb 2018 01:37:38 +0000 (02:37 +0100)]
bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066)

Make test.support.temp_cwd() fork-safe. The context manager test.support.temp_cwd() no longer removes the temporary directory when executing in a process other than the parent it entered from.
If a forked child exits the context manager it won't do the cleanup.

6 years agobpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter to compil...
Serhiy Storchaka [Thu, 22 Feb 2018 21:33:30 +0000 (23:33 +0200)]
bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter to compiler. (GH-5006)

Co-authored-by: Mark Shannon <mark@hotpy.org>
Co-authored-by: Antoine Pitrou <antoine@python.org>
6 years agobpo-32838: Fix Python versions in the table of magic numbers. (#5658)
Serhiy Storchaka [Thu, 22 Feb 2018 20:26:23 +0000 (22:26 +0200)]
bpo-32838: Fix Python versions in the table of magic numbers. (#5658)

6 years agoTest that new_timezone can return the UTC singleton (gh-5318)
Paul Ganssle [Thu, 22 Feb 2018 20:15:32 +0000 (15:15 -0500)]
Test that new_timezone can return the UTC singleton (gh-5318)

6 years agobpo-32457: Improves handling of denormalized executable path when launching Python...
Steve Dower [Thu, 22 Feb 2018 18:39:26 +0000 (10:39 -0800)]
bpo-32457: Improves handling of denormalized executable path when launching Python (GH-5756)

6 years agobpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage now corre...
Steve Dower [Thu, 22 Feb 2018 18:39:10 +0000 (10:39 -0800)]
bpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage now correctly convert from bytes. (GH-5761)

6 years agobpo-32905: IDLE - remove unused code in pyparse module (GH-5807)
Terry Jan Reedy [Thu, 22 Feb 2018 06:19:02 +0000 (01:19 -0500)]
bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)

dump is similar to print but less flexible.  lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing, so the class settings are not needed.  get_last_open_bracket_pos is never called.

6 years agocloses bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)
Eddie Elizondo [Thu, 22 Feb 2018 04:55:18 +0000 (20:55 -0800)]
closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)

6 years agobpo-32874: IDLE: add tests for pyparse (GH-5755)
Cheryl Sabella [Thu, 22 Feb 2018 03:48:36 +0000 (22:48 -0500)]
bpo-32874: IDLE: add tests for pyparse (GH-5755)

There are no code changes other than comments and docstrings.

6 years agobpo-32889: update valgrind suppressions (GH-5779)
Paul Price [Wed, 21 Feb 2018 06:00:01 +0000 (01:00 -0500)]
bpo-32889: update valgrind suppressions (GH-5779)

Py_ADDRESS_IN_RANGE was renamed address_in_range in 3.6
(commit 3924f93794fd740c547b44884f73303196475cd5).

6 years agobpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)
Benjamin Peterson [Wed, 21 Feb 2018 05:55:01 +0000 (21:55 -0800)]
bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)

It's bad form to pin to an old version of TLS. ssl.SSLContext has the right
protocol default, so let's not pass anyway.

6 years agobpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)
Harshul jain [Wed, 21 Feb 2018 04:30:01 +0000 (10:00 +0530)]
bpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)

6 years agobpo-32604: Swap threads only if the interpreter is different. (gh-5778)
Eric Snow [Tue, 20 Feb 2018 23:30:17 +0000 (16:30 -0700)]
bpo-32604: Swap threads only if the interpreter is different. (gh-5778)

The CPython runtime assumes that there is a one-to-one relationship (for a given interpreter) between PyThreadState and OS threads. Sending and receiving on a channel in the same interpreter was causing crashes because of this (specifically due to a check in PyThreadState_Swap()). The solution is to not switch threads if the interpreter is the same.

6 years agobpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is...
Zackery Spytz [Tue, 20 Feb 2018 21:06:11 +0000 (14:06 -0700)]
bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is not found (#5240)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.

6 years agobpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length...
Zackery Spytz [Tue, 20 Feb 2018 17:24:29 +0000 (10:24 -0700)]
bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)

Dropped the part that says: "For objects that do not provide sequence protocol".

6 years agocloses bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)
Alexey Izbyshev [Tue, 20 Feb 2018 07:25:46 +0000 (10:25 +0300)]
closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)

os.dup2() tests for dup3() system call availability at runtime,
but doesn't remember the result across calls, repeating
the test on each call with inheritable=False.

Since the caller of os.dup2() is expected to hold the GIL,
fix this by making the variable holding the test result static.

6 years agobpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)
Steve Dower [Tue, 20 Feb 2018 01:25:24 +0000 (17:25 -0800)]
bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)

6 years agobpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)
Zachary Ware [Mon, 19 Feb 2018 20:02:38 +0000 (14:02 -0600)]
bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)

6 years agobpo-32682: Improve libz version parsing in test_zilb (GH-5347)
pmp-p [Mon, 19 Feb 2018 03:45:11 +0000 (04:45 +0100)]
bpo-32682: Improve libz version parsing in test_zilb (GH-5347)

6 years agobpo-31972: Improve docstrings for pathlib classes (#5310)
chason [Sun, 18 Feb 2018 23:36:32 +0000 (08:36 +0900)]
bpo-31972: Improve docstrings for pathlib classes (#5310)

6 years agoImprove error message for "setup.py upload" without dist files (#21060)
Éric Araujo [Sun, 18 Feb 2018 23:14:54 +0000 (18:14 -0500)]
Improve error message for "setup.py upload" without dist files (#21060)

6 years agobpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)
Terry Jan Reedy [Sun, 18 Feb 2018 21:46:49 +0000 (16:46 -0500)]
bpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)

6 years agobpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (#5739)
Alexey Izbyshev [Sun, 18 Feb 2018 17:57:24 +0000 (20:57 +0300)]
bpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (#5739)

This function expects the destination buffer size to be given
in wide characters, not bytes.

6 years agoCorrect venv doc (fix #32540) (#5736)
TROUVERIE Joachim [Sun, 18 Feb 2018 16:52:36 +0000 (17:52 +0100)]
Correct venv doc (fix #32540) (#5736)

6 years agoClean up Travis config (GH-5727)
Zachary Ware [Sun, 18 Feb 2018 16:19:37 +0000 (10:19 -0600)]
Clean up Travis config (GH-5727)

6 years agobpo-31333: Re-implement ABCMeta in C (#5273)
Ivan Levkivskyi [Sun, 18 Feb 2018 12:41:58 +0000 (12:41 +0000)]
bpo-31333: Re-implement ABCMeta in C (#5273)

This adds C versions of methods used by ABCMeta that
improve performance of various ABC operations.

6 years agoAdd missing backslashes to get_externals.bat (GH-5731)
Steve Dower [Sun, 18 Feb 2018 03:58:57 +0000 (19:58 -0800)]
Add missing backslashes to get_externals.bat (GH-5731)

6 years agoImproves the ability to build in CI (GH-5728)
Steve Dower [Sun, 18 Feb 2018 02:59:03 +0000 (18:59 -0800)]
Improves the ability to build in CI (GH-5728)

6 years agobpo-30638: Add clinic to `make regen-all` (GH-5671)
Zachary Ware [Sat, 17 Feb 2018 23:58:57 +0000 (17:58 -0600)]
bpo-30638: Add clinic to `make regen-all` (GH-5671)

Also, use PYTHON_FOR_REGEN for clinic and blake2s_impl.c rather than PYTHON_FOR_BUILD, and update .travis.yml to make use of the change.

6 years agoFix a typo in asyncio docs (#5721)
Andrew Svetlov [Sat, 17 Feb 2018 17:44:35 +0000 (19:44 +0200)]
Fix a typo in asyncio docs (#5721)

6 years agobpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)
Kyle Altendorf [Sat, 17 Feb 2018 06:32:37 +0000 (22:32 -0800)]
bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)