[issue41756] Do not always use exceptions to return result from coroutine

2020-09-11 Thread Stefan Behnel
Stefan Behnel added the comment: Big +1 from me, too, for the same reasons Yury gave. -- nosy: +scoder ___ Python tracker ___ ___

[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

2020-09-11 Thread Freek de Kruijf
New submission from Freek de Kruijf : In a function definition I have the following piece of code: try: with open(requests,'rt') as f: tree = ElementTree.parse(f) On execution I got: Traceback (most recent call last): File "/srv/www/bin/web.py", line 362, in

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: issue38815 also reported similar issue in test_min_max_version_mismatch. -- nosy: +xtreak ___ Python tracker ___

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-11 Thread Vladyslav Bondar
Vladyslav Bondar added the comment: This is about openssl configuration in Ubuntu. In the latest Ubuntu, they disabled TLS 1.0/1.1. So to enable it back there is a workaround (taken from StackOverflow): You should modify openssl config: /etc/ssl/openssl.cnf You need to add this to the

[issue41730] Show deprecation warnings for tkinter.tix

2020-09-11 Thread wyz23x2
wyz23x2 added the comment: Ping? We will miss 3.8.6/3.9.0rc2 if it's too late! -- ___ Python tracker ___ ___ Python-bugs-list

[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

2020-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: parse() is an instance method. It should be called as tree.parse(f) (where tree is an instance of ElementTree), not ElementTree.parse(f). -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-11 Thread Eryk Sun
Eryk Sun added the comment: > We'd CreateFile the file and then immediately pass it to > _open_osfhandle Unlike _wopen, _open_osfhandle doesn't truncate Ctrl+Z (0x1A) from the last byte when the flags value contains _O_TEXT | _O_RDWR. _wopen implements this to allow appending data in text

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-11 Thread Tushar Sadhwani
New submission from Tushar Sadhwani : turtledemo.colormixer crashes after (what i'm assuming) 1000 changes to the state of a color bar. # Error: PS C:\Users\tusha> python -m turtledemo.colormixer Fatal Python error: Cannot recover from stack overflow. Python runtime state: initialized

[issue41631] _ast module: get_global_ast_state() doesn't work with Mercurial lazy import

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: > Compared to Python 3.8, PR 21961 has no regression related to subinterpreters. Oh. I forgot that static types cannot be modified (in Python, but it's possible in C). So my PR still changed the behavior compared to 3.8: --- import _testcapi import _ast res

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-09-11 Thread Larry Hastings
Larry Hastings added the comment: Nope, it's not fixed. -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___

[issue40964] Connection to IMAP server cyrus.andrew.cmu.edu hangs

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: The tests have been disabled, so I understand that the "release blocker" priority is no longer needed. It would be nice to reenable these tests, but I consider that it should not block the next 3.9 release. -- nosy: +vstinner priority: release

[issue35293] make doctest (Sphinx) emits a lot of warnings

2020-09-11 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +21257 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22198 ___ Python tracker ___

[issue41025] C implementation of ZoneInfo cannot be subclassed

2020-09-11 Thread Paul Ganssle
Paul Ganssle added the comment: This is fixed in the 3.9 and master branches, it needs to be cherry-picked into the 3.9.0 release (at Łukasz's discretion, of course). Łukasz: If you cherry-pick GH-20965/GH-21876 into the 3.9.0 release, please also cherry-pick GH-21907/GH-21912, since that

[issue41025] C implementation of ZoneInfo cannot be subclassed

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: Paul: What is the status of this issue? Is it already fixed? It is the release blocker priority. -- ___ Python tracker ___

[issue41761] multiprocessing.Queue prevents program exit when containing a reasonable amount of data

2020-09-11 Thread Dominik Schmid
New submission from Dominik Schmid : Reproduction steps: run the attached queue_busted.py expected result: "done." is printed and the program terminates. actual result: "done." is printed and the program does not terminate. Documentation link for your convenience:

[issue41760] 3.8.6 rc1 documentation fails to build with sphinx 3.2.1

2020-09-11 Thread Matthias Klose
Change by Matthias Klose : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41760] 3.8.6 rc1 documentation fails to build with sphinx 3.2.1

2020-09-11 Thread Matthias Klose
New submission from Matthias Klose : the 3.8.6 rc1 documentation fails to build with sphinx 3.2.1: [...] reading sources... [ 98%] whatsnew/3.1 reading sources... [ 98%] whatsnew/3.2 reading sources... [ 98%] whatsnew/3.3 reading sources... [ 98%] whatsnew/3.4 reading sources... [ 98%]

[issue40746] test_gdb failing on 32-bit armv7l when built with GCC -Og (fail on Raspbian on 3.9, regression from 3.8)

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: gdb doesn't work fully when Python is built with -Og. I don't think that there is much that we can do. I suggest to skip test_gdb on 32-bit ARM when Python is built with -Og. I don't think that this regular requires the "release blocker" priority. It would

[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: Oh. It seems like the warning only occurs randomly!? It is gone on one of my PR. -- ___ Python tracker ___

[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: I failed to reproduce the issue locally. I tried: cd Doc make clean make venv PYTHON=../python ./venv/bin/python -m pip install sphinx==2.2.0 blurb python-docs-theme make check suspicious html SPHINXOPTS="-q -W -j4" --

[issue41183] [3.5] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-09-11 Thread Larry Hastings
Larry Hastings added the comment: It depends on whether or not I get any more fixes for the rest of the month. (Theoretically 3.5 support ends on Sep 13, but I decided to extend it to the end of the month.) I filed this on July 1, so it's already been two months, and the developer who

[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +21258 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22199 ___ Python tracker ___

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-09-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: > I haven't yet figured out whether there's a convenient way for the reader to > not keep the ZIP open for as long as it exists, but I think that's going to > be the safest fix. You may be right here. I don't fully understand the repro, but it seems to me

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-09-11 Thread Paul Moore
Paul Moore added the comment: I think this reproduces the underlying issue: >>> import zipfile >>> from pathlib import Path >>> p = zipfile.Path("tst.zip") >>> Path("tst.zip").unlink() Traceback (most recent call last): File "", line 1, in File

[issue41760] 3.8.6 rc1 documentation fails to build with sphinx 3.2.1

2020-09-11 Thread Matthias Klose
Change by Matthias Klose : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: Python 3.5.10 has been released, so I understand that this issue has been fixed. Thanks Christian Heimes for fixes ;-) -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread STINNER Victor
New submission from STINNER Victor : https://travis-ci.com/github/python/cpython/jobs/383579366 Warning, treated as error: /home/travis/build/python/cpython/Doc/library/string.rst:311:duplicate token description of format_spec, other instance in reference/lexical_analysis --

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: The CI failed on the PR on the master branch: https://github.com/python/cpython/pull/21748 First, the Travis CI job didn't start. I closed/opened the issue: Travis CI ran. New issue: bpo-41762. Once bpo-41762 will be fixed, it should be possible to attempt

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-11 Thread Stefan Behnel
Stefan Behnel added the comment: Copying some of the design discussion from the PR here (https://github.com/python/cpython/pull/22196/files#r486730457), because it belongs into the ticket. Yury Selivanov proposed to add a new C-API function for this (naming changes by me): typedef

[issue31686] GZip library doesn't properly close files

2020-09-11 Thread Irit Katriel
Irit Katriel added the comment: The documentation states that: Calling a GzipFile object’s close() method does not close fileobj, since you might wish to append more material after the compressed data. This also allows you to pass an io.BytesIO object opened for writing as fileobj, and

[issue31686] GZip library doesn't properly close files

2020-09-11 Thread Irit Katriel
Irit Katriel added the comment: As for the bug you report - I was unable to reproduce it on windows (python 3.10) or linux (python 3.7). Can you check again to see if you still observe it, and give info on the system and python version if so? --

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-09-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch nosy: +vstinner nosy_count: 6.0 -> 7.0 pull_requests: +21256 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22197 ___ Python tracker

[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: There are two format_spec definitions: "format_spec ::= [[fill]align][sign][#][0][width][grouping_option][.precision][type]" https://docs.python.org/dev/library/string.html#format-specification-mini-language "format_spec ::= (literal_char | NULL

[issue41183] [3.5] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-09-11 Thread STINNER Victor
STINNER Victor added the comment: Python 3.5.10 is not the last 3.5 release? * https://devguide.python.org/#status-of-python-branches * https://www.python.org/dev/peps/pep-0478/ -- title: Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures -> [3.5] Workaround or fix for SSL

[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

2020-09-11 Thread Freek de Kruijf
Freek de Kruijf added the comment: Op vrijdag 11 september 2020 11:31:29 CEST schreef u: > Serhiy Storchaka added the comment: > > parse() is an instance method. It should be called as tree.parse(f) (where > tree is an instance of ElementTree), not ElementTree.parse(f). > > -- I

[issue24792] zipimporter masks import errors

2020-09-11 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 6.0 -> 7.0 pull_requests: +21259 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22204 ___ Python tracker

[issue24792] zipimporter masks import errors

2020-09-11 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) type: enhancement -> behavior versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

2020-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was not clear what you do without code and full traceback. The example uses *function* parse() from *module* ElementTree. Your code seems uses *method* parse() of *class* ElementTree.

[issue41763] IDLE: scale font to Windows' "zoom" factor

2020-09-11 Thread E. Paine
New submission from E. Paine : Following #33656, IDLE now "lies" to Windows and declares it has system DPI awareness to achieve a *sharper* look. System dpi is in effect: DPI_AWARENESS_UNAWARE * Windows' zoom factor Therefore, for IDLE to scale to the Windows' zoom/scale factor (System >

[issue28694] tkinter interface to fontchooser

2020-09-11 Thread Mark Roseman
Change by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41764] sub function would not work without the flags but the search would work fine

2020-09-11 Thread ali
New submission from ali : it would work like this sub("pattern","replace", txt, flags= re.IGNORECASE | re.DOTALL) but it wouldnt work like this sub("pattern","replace", txt, re.IGNORECASE | re.DOTALL) -- components: Regular Expressions messages: 376734 nosy: bayat, ezio.melotti,

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-11 Thread Vladimir Matveev
Vladimir Matveev added the comment: If I understand proposed shape of API correctly - it was not supposed to return exception via "result" so contract for new `PyGen_Send` function is something like: Return value | result | Comment -

[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

2020-09-11 Thread Freek de Kruijf
Freek de Kruijf added the comment: Op vrijdag 11 september 2020 17:06:43 CEST schreef u: > Serhiy Storchaka added the comment: > > It was not clear what you do without code and full traceback. > > The example uses *function* parse() from *module* ElementTree. Your code > seems uses *method*

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-11 Thread Yury Selivanov
Yury Selivanov added the comment: @Mark > Mark Shannon wrote: I don't think [the C-API function] should be public, as a > possible further improvement is to stop passing exceptions through a side > channel, but in result. Maybe we don't want to do that, but lets' not add to > the (already

[issue41764] sub function would not work without the flags but the search would work fine

2020-09-11 Thread Matthew Barnett
Matthew Barnett added the comment: The arguments are: re.sub(pattern, repl, string, count=0, flags=0). Therefore: re.sub("pattern","replace", txt, re.IGNORECASE | re.DOTALL) is passing re.IGNORECASE | re.DOTALL as the count, not the flags. It's in the documentation and the interactive

[issue41760] 3.8.6 rc1 documentation fails to build with sphinx 3.2.1

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two issues about Sphinx 3.2.1 failing with "duplicate token description" (posted on both) #41760 'sign', multiple people nosy, failed where? #41762 'format_spec', on Travis, PR by Victor Stinner (2.2.0 okay) -- nosy: +terry.reedy

[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two issues about Sphinx 3.2.1 failing with "duplicate token description" (posted on both) #41760 'sign', multiple people nosy, failed where? #41762 'format_spec', on Travis, PR by Victor Stinner (2.2.0 okay) -- nosy: +terry.reedy

[issue41771] bdist_wininst doesn't execute postinstall script

2020-09-11 Thread Mark Hammond
Change by Mark Hammond : -- keywords: +patch pull_requests: +21265 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22210 ___ Python tracker ___

[issue41771] bdist_wininst doesn't execute postinstall script

2020-09-11 Thread Mark Hammond
New submission from Mark Hammond : install.c tries to dynamically load PyCFunction_New at https://github.com/python/cpython/blob/fb2718720346c8c7a0ad2d7477f20e9a5524ea0c/PC/bdist_wininst/install.c#L686 - however, since 3.8 this no longer exists - PyCFunction_New is a #define which calls

[issue41770] Import module doesn't updated

2020-09-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, it is working as designed. Importing takes the module from the cache. You can either delete the module from the cache: del sys.modules['modulename'] import modulename # reloads from the module file or possibly simpler, use

[issue41763] IDLE: scale font to Windows' "zoom" factor

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are you the Elisha Paine that suggested the original fix? I am still interested in the subject, but there are a lot of factors to consider. Rereading #33656, I disagree that IDLE is lying; tk scales on startup and others agreed with the current setting,

[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5 by Terry Jan Reedy in branch 'master': bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146) https://github.com/python/cpython/commit/31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5 --

[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +21266 pull_request: https://github.com/python/cpython/pull/22211 ___ Python tracker

[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +21267 pull_request: https://github.com/python/cpython/pull/22212 ___ Python tracker ___

[issue40108] Improve error message for -m option when .py is present

2020-09-11 Thread Jay Cee Garcia
Change by Jay Cee Garcia : -- components: +XML type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I cannot reproduce on Win 10, 32bit repository debug builds, amd64 machine, with either current master or 3.8, started from command prompt in normal environment with same command. I also used installed 3.9 a bit. Are .pyenv and pyenv-win your names or do

[issue41768] unittest.mock spec calls class properties

2020-09-11 Thread melwitt
New submission from melwitt : When async magic method support was added to unittest.mock.Mock to address issue #26467, it introduced a getattr call [1] that causes class properties to be called when the class is used as a mock spec. This caused a problem for a test in my project when running

[issue41749] Allow omission of imghdr.what file arg if bytes are given

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The opening message confused me by using 'need' as 'currently required to call' rather than 'required to compute (test) and necessarily needed to call'; but after reading the code, I believe I understand and modified title to match. More simply, one could

[issue41768] unittest.mock spec calls class properties

2020-09-11 Thread melwitt
Change by melwitt : -- keywords: +patch pull_requests: +21264 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22209 ___ Python tracker ___

[issue41753] subprocess.run on windows does not convert path to string

2020-09-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Can't pass Path like objects to subprocess api's on Windows. ___ Python tracker

[issue41753] subprocess.run on windows does not convert path to string

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Also, 3.7 only get security patches. -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue41649] Can't pass Path like objects to subprocess api's on Windows.

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #41753 as a duplicate of this. On that issue, Eryk Sun said "The underlying subprocess.Popen class was updated in 3.8 to support path-like objects in `args` (with shell=False) and `executable` on Windows [1]. This change was not backported to 3.6

[issue41760] 3.8.6 rc1 documentation fails to build with sphinx 3.2.1

2020-09-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41768] unittest.mock spec calls class properties

2020-09-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41755] Docs: Please remove `from distutils.core import setup`

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is discussion on pydev about formally deprecating distutils, which would deprecate that snippet. -- nosy: +dstufft, eric.araujo, terry.reedy ___ Python tracker

[issue41767] KeyError exception is more difficult to read due to quoting

2020-09-11 Thread Martin Panter
Martin Panter added the comment: Perhaps a duplicate of Issue 2651, closed because it was too hard to fix without breaking compatibility. -- nosy: +martin.panter superseder: -> Strings passed to KeyError do not round trip ___ Python tracker

[issue41767] KeyError exception is more difficult to read due to quoting

2020-09-11 Thread Anthony Sottile
Change by Anthony Sottile : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2651] Strings passed to KeyError do not round trip

2020-09-11 Thread Anthony Sottile
Anthony Sottile added the comment: (I know this is old and closed but I've just run into the same thing with pwd.getpwnam in issue41767) KeyError: "getpwnam(): name not found: 'test'" would it be possible / make sense to extend `KeyError` with a named-only-argument which would preserve

[issue41769] Positional arguments which use store boolean actions do not behave as other actions.

2020-09-11 Thread Rafael Guterres Jeffman
New submission from Rafael Guterres Jeffman : argparse allow the use of `store_true` and `store_false` for positional arguments, and although it is weird, it should be fine, but using either action raises a behavior I believe is wrong. Given the following Python code: ``` import argparse

[issue41770] Import module doesn't updated

2020-09-11 Thread chen-y0y0
New submission from chen-y0y0 : # I create a module: # \sys.path\xxx.py a = 9 # And: >>> import xxx >>> xxx.a 9 # I delete this imported module and modified this module: del xxx # \sys.path\xxx.py a = 9 b = 8 # And re-import: >>> import xxx >>> xxx.b # But: Traceback (most recent call last):

[issue41762] Documentation job fails on CIs: duplicate token description of format_spec

2020-09-11 Thread Dong-hee Na
Dong-hee Na added the comment: >>> sphinx.__version__ '3.2.1 I can reproduce this issue consistantly on my local machine with this environment. -- nosy: +corona10 ___ Python tracker

[issue41770] Import module doesn't updated

2020-09-11 Thread pmp-p
pmp-p added the comment: Hi, you just need to call del sys.modules['xxx'] and have a look at https://docs.python.org/3.7/library/importlib.html#importlib.invalidate_caches before importing again -- nosy: +pmpp ___ Python tracker

[issue41770] Import module doesn't updated

2020-09-11 Thread pmp-p
Change by pmp-p : -- nosy: -pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-11 Thread Bug Reporter
Bug Reporter added the comment: I followed Vladyslav Bondar's 2020-09-11 09:10:30 recommendations and it worked: Tests result: SUCCESS Thank you. It is not clear though how Canonical built its python-3.8.2 which comes with Ubuntu-20.04. Does anyone know someone at Canonical to ask this

[issue41725] bz2 would use a dedicated exception for data error

2020-09-11 Thread Michał Górny
Michał Górny added the comment: > An OSError for a file the OS can read seems a bit off. What is the > accompanying message? For example: OSError: Invalid data stream (I've just put random string into a file, and opened it as bzip2) > Would something like ValueError("bz2 compressor

[issue41719] Why does not range() support decimals?

2020-09-11 Thread chen-y0y0
Change by chen-y0y0 : -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-09-11 Thread Steve Dower
Steve Dower added the comment: If you look at the PR into 3.9, it includes a test for this exact case. Start by copying that into 3.10 and then make it pass and everything should be good :) -- ___ Python tracker

[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread Steve Dower
Steve Dower added the comment: No objections. I'd guess it was a typo. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41646] shutil.copy documentation should clarify support for path-like objects

2020-09-11 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 4.0 -> 5.0 pull_requests: +21263 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22208 ___ Python tracker

[issue41767] KeyError exception is more difficult to read due to quoting

2020-09-11 Thread Anthony Sottile
New submission from Anthony Sottile : For example: >>> import pwd >>> pwd.getpwnam("test") Traceback (most recent call last): File "", line 1, in KeyError: "getpwnam(): name not found: 'test'" An improvement would be something which doesn't have the extra set of quotes such as: >>>

[issue41745] BoundArguments.arguments used in the recommended way to call a callable silently succeeds for nonexistent arguments

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bound is created with 5 public attributes: >>> dir(bound) [..., 'apply_defaults', 'args', 'arguments', 'kwargs', 'signature'] >>> bound.args () >>> bound.arguments {} >>> bound.kwargs {} msg376578: I don't understand 'non-existent' arguments, Nor 'what

[issue41745] BoundArguments.arguments used in the recommended way to call a callable silently succeeds for nonexistent arguments

2020-09-11 Thread Julian Berman
Julian Berman added the comment: Not sure I agree with it being just a doc issue -- happy to clarify if something was unclear, not sure from your message if it was or if you disagree, but e.g.: > However, your 'two' function takes no arguments, so valid values of args and > kwargs must be

[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Vitaly, when you repost to posts by email, please delete the post you are responding to, expect possible for a particular line. The full post is already here on the web page above the response, and a duplicate copy is just noise that wastes screen space.

[issue25330] Docs for pkgutil.get_data inconsistent with semantics

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41729] test_winconsoleio fails and hangs on Windows

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, as author of the file and line in question, do you have any objection to changing it? -- ___ Python tracker ___

[issue25330] Docs for pkgutil.get_data inconsistent with semantics

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25509] PyImport_ImportModule inaccurately described

2020-09-11 Thread Brett Cannon
Brett Cannon added the comment: https://github.com/python/cpython/blob/45b34a04a577aa49fa4825421758c3e8eaa1625d/Python/import.c#L1474-L1485 shows that the docs could be simplified to point out that `PyImport_ImportModule()` is a wrapper around `PyImport_Import()` which takes `const char *`.

[issue41725] bz2 would use a dedicated exception for data error

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: An OSError for a file the OS can read seems a bit off. What is the accompanying message? Would something like ValueError("bz2 compressor failed with BZ_DATA_ERROR") be better? Michał, are there precedents or models for this in the other file compression

[issue25343] Document atomic operations on builtin types

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26060] Class __dict__ iteration order changing due to type instance key-sharing

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26007] Support embedding the standard library in an executable

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25682] __package__ not set to None under pdb in Python 3

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib) -Extension Modules nosy: -brett.cannon ___ Python tracker ___ ___

[issue25963] strptime not parsing some timezones

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26007] Support embedding the standard library in an executable

2020-09-11 Thread Brett Cannon
Brett Cannon added the comment: Update: PEP 432 was withdrawn, so this issue is now languishing and not blocked on something else. -- ___ Python tracker ___

[issue25912] Use __spec__.__name__ instead of __name__ in the docs where appropriate

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41731] test_cmd_line_script fails with verbosity level more than 1

2020-09-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +21260 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22206 ___ Python tracker ___

[issue41737] Improper NotADirectoryError when opening a file in a fake directory

2020-09-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Improper NotADirectoryError when opening a file under a fake directory -> Improper NotADirectoryError when opening a file in a fake directory ___ Python tracker

[issue41742] Request for docs.python.org/3/library/configparser.html#exceptions improvement

2020-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/library/configparser.html#exceptions, like similar sections for other module docs, lists and explains the non-builtin exceptions defined and used in the module. Functions in all modules can potentially raise various builtin

[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2020-09-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >