[3.6.3] bpo-33034: Added explicit exception message with cast failed. by agnosticdev · Pull Request #6077 · python/cpython (original) (raw)

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

agnosticdev

@terryjreedy

@serhiy-storchaka

…json (GH-2690) (#2692)

encoder and decoder. (cherry picked from commit d3aaa2f)

@zooba

@terryjreedy

@terryjreedy

…ConfigDialog (GH-2697) (#2702)

The will help writing dialog improvements and splitting the class into multiple classes. Original patch by Cheryl Sabella. (cherry picked from commit 36329a4)

@terryjreedy

(cherry picked from commit 0d0a32f)

@rogalski @bitdancer

@ned-deily

@terryjreedy

#2726)

@serhiy-storchaka

…the package (GH-2639) (#2676)

instead of failing with SystemError.

Relative import from non-package now fails with ImportError rather than SystemError. (cherry picked from commit 8a9cd20)

@serhiy-storchaka

@ned-deily

@ned-deily

@ned-deily

@zhangyangyu

@zooba

Adds alternate download approach for nuget.exe Fall back to git.exe if no Python is found. (#2739) Also check whether git.exe is on PATH if it will be used. Add support for HOST_PYTHON variable. Clear internal environment variables used in find_python.bat Use HOST_PYTHON as the actual Python if it is recent enough. Adds HOST_PYTHON variable to AppVeyor configuration

@ammaraskar @berkerpeksag

@terryjreedy

Patch by Louie Lu. (cherry picked from commit f776eb0) (includes diffs of ed014f7 and 9f9192a)

@ned-deily

@Mariatta

(cherry picked from commit fff2a21)

@vstinner

When running the test suite using --use=all / -u all, exclude tzdata since it makes test_datetime too slow (15-20 min on some buildbots) which then times out on some buildbots.

-u tzdata must now be enabled explicitly, -u tzdata or -u all,tzdata, to run all test_datetime tests.

Fix also regrtest command line parser to allow passing -u extralargefile to run test_zipfile64.

Travis CI: remove -tzdata. Replace -u all,-tzdata,-cpu with -u all,-cpu since tzdata is now excluded from -u all. (cherry picked from commit 5b392bb)

@treyhunner @Mariatta

@terryjreedy

)

(cherry picked from commit a54a8f1)

@NicholasKobald @ncoghlan

)

Adds a new 'Pip not installed' section that covers running ensurepip manually, and also references the relevant section of the Python Packaging User Guide.

(cherry picked from commit b3527bf)

@vstinner

Use sys.modules.get() in the "with _ModuleLockManager(name):" block to protect the dictionary key with the module lock and use an atomic get to prevent race condition.

Remove also _bootstrap._POPULATE since it was unused (_bootstrap_external now has its own _POPULATE object), add a new _SENTINEL object instead. (cherry picked from commit e72b135)

@berkerpeksag

…builtin functions (GH-3)

Cython will, in the right circumstances, offer a MethodType instance where im_func is a builtin function. Any instance of MethodType is automatically assumed to be a Python-defined function (more specifically, a function that has an inspectable signature), but _set_signature was still conservative in its assumptions. As a result _set_signature would return early with None instead of a mock since the im_func had no inspectable signature. This causes problems deeper inside mock, as _set_signature is assumed to always return a mock, and nothing checked its return value.

In similar corner cases, autospec will simply not check the spec of the function, so _set_signature is amended to now return early with the original, not-wrapped mock object.

Patch by Aaron Gallagher.

(cherry picked from commit 856cbcc)

@terryjreedy

…#2796)

Verify that clicking the bold checkbutton and calling its command, set_samples, changes the bold setting of both samples. Simplify some names in configdialog. (cherry picked from commit d0969d6) (Incorporates changes and fixes from PRs 2798, 7c5798e, and 2810, 616ecf1)

@gpshead

) (#2820)

Make test_shutil test_disk_usage not depend on the current working directory's filesystem. (cherry picked from commit 529746c)

@terryjreedy

…-2818) (#2826)

@ned-deily

(cherry picked from commit 4c7532e)

@miss-islington @Mariatta

Shorten the comment to: "using integer format specifier" (cherry picked from commit 63c591c)

@miss-islington @terryjreedy

@miss-islington @terryjreedy

…3645)

xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously by the garbage collector, because the parser was part of a reference cycle.

Co-Authored-By: Serhiy Storchaka storchaka@gmail.com (cherry picked from commit e727d41)

@ned-deily

@ned-deily

@zooba @ned-deily

@zware @ned-deily

Use prefixed macro names for the authoraddress function, add T2A to the font encoding in LaTeX sources to support Cyrillic characters in the PDF documentation, and replace the deprecated font_size config option with pointsize. (cherry picked from commit da9b4cf)

@miss-islington @ned-deily

…completed()` (GH-3830) (#3831)

This was possible before. GH-1560 introduced a regression after 3.6.2 got released where only sequences were accepted now. This commit addresses this problem. (cherry picked from commit 574562c)

@miss-islington @ned-deily

(cherry picked from commit efb560e)

@ned-deily

@ned-deily

@ned-deily

@ned-deily

@agnosticdev

Reviewers

@1st1 1st1 Awaiting requested review from 1st1

@asvetlov asvetlov Awaiting requested review from asvetlov

@gpshead gpshead Awaiting requested review from gpshead

@gvanrossum gvanrossum Awaiting requested review from gvanrossum

@ilevkivskyi ilevkivskyi Awaiting requested review from ilevkivskyi

@ncoghlan ncoghlan Awaiting requested review from ncoghlan

@rhettinger rhettinger Awaiting requested review from rhettinger

@skrah skrah Awaiting requested review from skrah

@terryjreedy terryjreedy Awaiting requested review from terryjreedy