[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Константин Глухов
Change by Константин Глухов : -- keywords: +patch pull_requests: +25606 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27050 ___ Python tracker

[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-07-06 Thread Yair Frid
Yair Frid added the comment: This issue was discovered when i was writing unit tests for #42766, since #42766 was fixed when i discovered it, i realized i might want a new issue, i don't mind moving this to be a comment, but there *are* 2 distinct test cases that fail: a test case that woul

[issue44575] Windows installer prohibits different patches for the same version

2021-07-06 Thread Константин Глухов
New submission from Константин Глухов : Windows installer prohibits different patches for the same version. I do not see any reason why the installer cannot put two different versions, e.g. 3.9.4 and 3.9.6 into different folders. This makes it very difficult to debug issues introduced in higher

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2021-07-06 Thread huantian
huantian added the comment: This issue is somewhat old, but I think either applying the patch attached earlier or noting this difference in behavior in the documentation would be ideal, as it can be quite difficult to debug shutil.unpack_archive silently skipping files. If the files you expe

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: I'm not sure if shutil module docs should be updated or not, as this change applies to a narrow corner case. -- ___ Python tracker ___ _

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've opened the PR here: https://github.com/python/cpython/pull/27049/files .. but can someone trigger builds for other OSes like Aix, FreeBSD, etc? I'm not sure what errors they would use for this case so the unit test may have to be updated to skip some of

[issue44574] IDLE: Implement or delete python-context-help.

2021-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should check whether all other keybindings are implemented. -- ___ Python tracker ___ ___ Pytho

[issue44574] IDLE: Implement or delete python-context-help.

2021-07-06 Thread Terry J. Reedy
New submission from Terry J. Reedy : The config.IdleConf.GetCoreKeys keyBindings dict contains '<>': [''] The was included in the initial version by Steven Gava, 9930061c, on 2001 Dec 2. So it appears in the Keys page of the config dialog, as noticed by Mondher on SO ((https://stackoverfl

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-06 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 2.0 -> 3.0 pull_requests: +25605 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27049 ___ Python tracker

[issue43262] "_weakrefset.py", line 56: IndexError: pop from empty list

2021-07-06 Thread Andrei Kulakov
Change by Andrei Kulakov : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

2021-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yair, is this really a separate bug from that reported in #42766? In other words, are there separate and distinct failing test cases? If not, this should be closed as a duplicate. -- nosy: +orsenthil, terry.reedy __

[issue42766] urllib.request.HTTPPasswordMgr uses commonprefix instead of commonpath

2021-07-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44573] Organize some data files in the Lib/test directory

2021-07-06 Thread Leonardo Freua
New submission from Leonardo Freua : I noticed that some data files (used to perform some specific tests) are not organized in specific directories of their categories. Some files that I found are audiotest.au, badcert.pem, badkey.pem, cfgparser.1, cfgparser.2, etc (some are even .py files).

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Константин Глухов
Константин Глухов added the comment: I will try -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: Robert: I haven't worked with importlib or pyclbr before, so these may be naive questions, but: - can your usecase be resolved with a workaround, e.g. setting ModuleSpec manually in / on __main__ module, something like `from importlib._bootstrap import Modu

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Zachary Ware
Zachary Ware added the comment: Would you like to create a pull request to that effect? -- components: -IO stage: -> needs patch versions: +Python 3.10, Python 3.11 ___ Python tracker _

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-06 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +25604 pull_request: https://github.com/python/cpython/pull/27048 ___ Python tracker ___ _

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Константин Глухов
Константин Глухов added the comment: The obvious fix is to add "stdin=subprocess.DEVNULL" argument to check_output() call. -- ___ Python tracker ___ __

[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-07-06 Thread Andrei Kulakov
Change by Andrei Kulakov : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43950] Include column offsets for bytecode instructions

2021-07-06 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +25603 pull_request: https://github.com/python/cpython/pull/27047 ___ Python tracker ___ _

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-07-06 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset c45fa1a5d9b419cf13ad4b5a7cb453956495b83e by Yurii Karabas in branch 'main': bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980) https://github.com/python/cpython/commit/c45fa1a5d9b419cf13ad4b5a7cb453956495b83e --

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-06 Thread Guido van Rossum
Change by Guido van Rossum : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue43298] Windows build cannot detect missing Windows SDK

2021-07-06 Thread Jason R. Coombs
Jason R. Coombs added the comment: I was able to export the configuration using these instructions: https://docs.microsoft.com/en-us/visualstudio/install/import-export-installation-configurations?view=vs-2019 That produced this config: { "version": "1.0", "components": [ "Microsoft.V

[issue43493] EmailMessage mis-folding headers of a certain length

2021-07-06 Thread R. David Murray
R. David Murray added the comment: Ah, yes, the problem is more subtle than I thought. The design here is that we should be starting with the largest lexical unit, seeing if that fits on the current line, or a line by itself, and if so, using that, and if not, move down to the next smaller l

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: I should have been more exact - I've used python3.7.7 . -- ___ Python tracker ___ ___ Python-bugs

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: Running R.David's test script on python3.7, it also works, there's no exception. -- ___ Python tracker ___ __

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-06 Thread R. David Murray
R. David Murray added the comment: How are you encountering this error? The following program runs without exception for me on master: from email import message_from_binary_file from email.policy import SMTP msg = message_from_binary_file(open('mail.eml', 'rb'), policy=SMTP) print(msg) ---

[issue44560] Unrecognized charset "eucgb2312_cn" in email header for many MUA

2021-07-06 Thread R. David Murray
R. David Murray added the comment: I can't tell tell for sure if this behavior is intentional or not from a quick glance at the code (though like you I wouldn't think it would be). That's part of the legacy api, at this point. The new api will just use utf8: from email.message import EmailMe

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-06 Thread Константин Глухов
New submission from Константин Глухов : Starting with version 3.9.5 platform.win32* functions have been re-written and consume STDIN. The bug comes down to running 'ver', 'command /c ver', 'cmd /c ver' in platform._syscmd_ver() via subprocess.check_output(). The following code demonstrate the

[issue36643] Forward reference is not resolved by dataclasses.fields()

2021-07-06 Thread Paolo Lammens
Paolo Lammens added the comment: I was about to create the exact same ticket; I'm nudging this. -- nosy: +plammens ___ Python tracker ___ _

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-07-06 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 8b849ea0f3482ad834e7989ff474dd5db2f295c8 by Sebastian Rittau in branch 'main': bpo-38291: Fix a spurious warning when using help(object) (#27039) https://github.com/python/cpython/commit/8b849ea0f3482ad834e7989ff474dd5db2f295c8 -- _

[issue27875] Syslogs /usr/sbin/foo as /foo instead of as foo

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: This was fixed in https://github.com/python/cpython/pull/16557 , so can be closed. -- nosy: +andrei.avk ___ Python tracker ___ _

[issue37198] _parse_localename fail to parse 'en_IL'

2021-07-06 Thread Andrei Kulakov
Change by Andrei Kulakov : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue37198] _parse_localename fail to parse 'en_IL'

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: Note the traceback is from 2.7, which is not supported. Hodai: Can you verify it on a 3.6-3.11 release? -- nosy: +andrei.avk versions: -Python 3.10 ___ Python tracker

[issue44560] Unrecognized charset "eucgb2312_cn" in email header for many MUA

2021-07-06 Thread Mark Sapiro
Change by Mark Sapiro : -- versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue43098] tarfile list() method does not show file type

2021-07-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've tested this patch on OS X with symbolic links, dirs, files and it works fine. -- nosy: +andrei.avk ___ Python tracker ___ _

[issue34919] Crash caused by certain characters in a string

2021-07-06 Thread Irit Katriel
Irit Katriel added the comment: As per message https://bugs.python.org/issue34919#msg327639, the issue was fixed in 3.7.1. -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue31218] del expects __delitem__ if __setitem__ is defined

2021-07-06 Thread Irit Katriel
Irit Katriel added the comment: It is still the same in 3.11: >>> class WithoutSetItem: ... def __getitem__(self, key): ... return "foo" ... >>> class WithSetItem: ... def __getitem__(self, key): ... return "foo" ... def __setitem__(self, key, val): ... retu

[issue16321] Move eq.h out of stringlib

2021-07-06 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: To add irit's comment, It is *also* used in Objects/unicodeobject.c -- nosy: +thatiparthy ___ Python tracker __

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-06 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner https://github.com/python/cpython/pull/27007 is not yet merged due to CLA issue -- ___ Python tracker ___ ___

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-06 Thread STINNER Victor
STINNER Victor added the comment: This issue can be closed, no? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue44547] fraction.Fraction does not implement __int__.

2021-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other hand, there are classes which define __int__ but not __trunc__: UUID and IP4Address. So it makes sense to keep separate __int__ and __trunc__. -- ___ Python tracker

[issue44571] itertools: takedowhile()

2021-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if set the last item as an attribute of the takewhile iterator? -- nosy: +serhiy.storchaka ___ Python tracker ___