[issue29586] Cannot run pip in fresh install of py 3.5.3

2021-03-15 Thread Steve Dower
Steve Dower added the comment: This was caused by the UCRT not installing properly. These days, the UCRT is installed app-local for Win 8.1, and is already present on Win 10, so it can't happen anymore. -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2021-03-15 Thread Steve Dower
Steve Dower added the comment: The UCRT can no longer fail to install - we do an app-local install on Win 8.1, and it's already present on Win 10. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-03-15 Thread Steve Dower
Steve Dower added the comment: The link appears to be in the Resolution header of PEP 632? But yes, your analysis is correct. If/when we move distutils elsewhere, we'll probably have to update all of these sections. Ideally we'd have a helper function to do the initial "import distutils",

[issue27346] Implement os.readv() / os.writev() in Windows port

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: The need for asynchronous I/O (i.e. FILE_FLAG_OVERLAPPED) with ReadFileScatter() and WriteFileGather() makes them a poor fit for POSIX os.readv() and os.writev(), since we can't open the file with open() or os.open(). Python's socket module opens sockets in asynchr

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2021-03-15 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow nosy_count: 2.0 -> 3.0 pull_requests: +23645 pull_request: https://github.com/python/cpython/pull/24828 ___ Python tracker ___ ___

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: > * 5 singletons This issue is discussed in bpo-39511 "[subinterpreters] Per-interpreter singletons (None, True, False, etc.)". > Since they are part of the limited API, they have a direct effect on the > stable ABI. This issue is discussed in bpo-40601: "

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: > I can never remember what "Py_LIMITED_API" stands for. Include/README file is being written, have a look ;-) https://github.com/python/cpython/pull/24884/files -- ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-15 Thread Brandt Bucher
Brandt Bucher added the comment: Cool. Today or tomorrow I'll create an issue in Guido's patma repo and we can move our discussion there. I'll also create a branch and add you to my fork. -- ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-15 Thread Brandt Bucher
Brandt Bucher added the comment: Also, given that pattern matching is now shipped and documented, perhaps this issue should be closed? At this point I think dedicated issues are probably better for any new bugs/enhancements/etc. -- ___ Python trac

[issue41933] Wording of s * n in Common Sequence Operations is not optimal

2021-03-15 Thread Julien Palard
Julien Palard added the comment: New changeset 0269ce87c9347542c54a653dd78b9f60bb9fa822 by Chavdar Yotov in branch 'master': bpo-41933: Clarify wording for s * n in Common Sequence Operations (GH-22570) https://github.com/python/cpython/commit/0269ce87c9347542c54a653dd78b9f60bb9fa822 --

[issue41933] Wording of s * n in Common Sequence Operations is not optimal

2021-03-15 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43504] effbot.org down

2021-03-15 Thread Julien Palard
New submission from Julien Palard : effbot.org is down, it's currently displaying: > effbot.org on hiatus > > effbot.org is taking a break. We’ll be back, in some form or another. But docs.python.org have a few links pointing to it, `git grep effbot` finds 11 of them in the Doc/. I think they

[issue43505] [sqlite3] Explicitly initialise and shut down sqlite3

2021-03-15 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : We should explicitly initialise (and shut down) the SQLite library in the sqlite3 module. This may be required in future releases: Quoting from the SQLite docs: "For maximum portability, it is recommended that applications always invoke sqlite3_ini

[issue43477] from x import * behavior inconsistent between module types.

2021-03-15 Thread Brett Cannon
Brett Cannon added the comment: Sorry, I'm having a hard time following what you've written and I unfortunately don't have time to examine your (I assume) .tar.xz file. When you say "directory-based-module", do you mean a package (e.g. `__init__.py` in a directory)? It's important to be clea

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-15 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, feel free to close this issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2021-03-15 Thread Anthony Sottile
Anthony Sottile added the comment: I took a stab at improving the error message (see the linked PR) $ ./python -c 'import tarfile; tarfile.open("Lib/test/testtar.tar.xz")' Traceback (most recent call last): File "", line 1, in File "/home/asottile/workspace/cpython/Lib/tarfile.py", line 1

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-15 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-15 Thread Brandt Bucher
Brandt Bucher added the comment: Actually, I didn't see that there are still 2 open linked PRs. I'll wait until those are merged. -- ___ Python tracker ___ __

[issue43477] from x import * behavior inconsistent between module types.

2021-03-15 Thread Thomas J. Gallen
Thomas J. Gallen added the comment: Yes, a package. There isn't actually that much in the txz. Most of the files are ostensibly empty. As an example, let's say we have the following files: test.py test_module/__init__.py test_module/test_submodule.py test.py contains: ```python import test_

[issue43080] pprint for dataclass instances

2021-03-15 Thread Eric V. Smith
Eric V. Smith added the comment: I'm leaning toward accepting this on the condition that it only be invoked for dataclasses where __repr__ was the version generated by @dataclass. And also that it use the same fields that the generated __repr__ would use (basically skipping repr=False fields

[issue43080] pprint for dataclass instances

2021-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, we've not had a feature request for this ever, nor has there been a request for pprint to support attrs, nor any other hand-rolled class that implements methods similar to those generated by dataclasses. AFAICT, this tracker issue wasn't motivated

[issue30555] _io._WindowsConsoleIO breaks in the face of fd redirection

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: PR 1927 is a definite improvement. By using _get_osfhandle() instead of caching the handle value, it guarantees that access to the original console file can be saved and restored via `fd_save = dup(fd)` and `dup2(fd_save, fd)`. It also allows duping a new open of

[issue31665] Edit "Setting [windows] environmental variables"

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bug

[issue27346] Implement os.readv() / os.writev() in Windows port

2021-03-15 Thread Марк Коренберг
Марк Коренберг added the comment: I'm not interested in Windows platform anymore. -- status: pending -> open ___ Python tracker ___

[issue43477] from x import * behavior inconsistent between module types.

2021-03-15 Thread Thomas J. Gallen
Thomas J. Gallen added the comment: parent module* rather. Just saw that typo. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue32434] pathlib.WindowsPath.reslove(strict=False) returns absoulte path only if at least one component exists

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: bpo-38671 has PR 17716 pending approval, which addresses the problem in msg309102 by ensuring that a non-strict resolve begins by getting the absolute path via nt._getfullpathname(). -- resolution: -> duplicate stage: needs patch -> resolved status: open

[issue27346] Implement os.readv() / os.writev() in Windows port

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue43506] PEP 624: Update document for removal schedule

2021-03-15 Thread Inada Naoki
New submission from Inada Naoki : They are documented as "will be removed in 4.0" now. -- components: C API messages: 388800 nosy: methane priority: normal severity: normal status: open title: PEP 624: Update document for removal schedule versions: Python 3.10, Python 3.9 _

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-15 Thread Larry Trammell
Larry Trammell added the comment: I can't find any real errors in documentation. There are subtle design and implementation decisions that result in unexpected rare side effects. After processing hundreds of thousands of lines one way, why would the parser suddenly decide to process the ne

[issue43506] PEP 624: Update document for removal schedule

2021-03-15 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +23646 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24885 ___ Python tracker ___

[issue43507] Variables in locals scope fails to be printed.

2021-03-15 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following code 1 calls function 'compile' and 'exec' and execute a statement "s=1". Then we print the value of 's'. This code can perform well on Python 3.9.2 and output the expected result. However, we pack the whole code into a function (code 2). The e

[issue43508] Miscompilation information for tarfile.open() when given too many arguments

2021-03-15 Thread Xinmeng Xia
New submission from Xinmeng Xia : In following example, we only give 10 arguments to tarfile.open(). The error message shows "11 arguments were given".We give it 5 arguments and the error message shows "6 were given". This is not correct. ===

[issue43509] CFunctionType object should be hashable in Python

2021-03-15 Thread Xinmeng Xia
New submission from Xinmeng Xia : See the following examples, ctypes.resize is a built-in function and it's hashable. ctypes.memset is a C function (CFunctionType object) and it's “unhashable”. However, ctypes.resize and ctypes.memset are both immutable. They should act the same in Python

[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: The complexity of mixing standard I/O from the shell and external programs is a limitation of the Windows command line. Each program could choose to use the system (or process) ANSI or OEM code page, the console session's input or output code page, UTF-8, or UTF-1

[issue41361] Converting collections.deque methods to Argument Clinic

2021-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 448801da96c70699e2ca0798efdfe86d45f37f06 by Dennis Sweeney in branch 'master': bpo-41361: Optimized argument parsing for deque_rotate (GH-24796) https://github.com/python/cpython/commit/448801da96c70699e2ca0798efdfe86d45f37f06 -- _

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +23647 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/24886 ___ Python tracker ___ ___

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +23648 pull_request: https://github.com/python/cpython/pull/24887 ___ Python tracker ___

[issue41361] Converting collections.deque methods to Argument Clinic

2021-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the PR :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: I'm certain this is a third-party problem -- something like AppLocker or an anti-malware program that's limiting filesystem access. It's not a bug in Python, which simply uses FindFirstFileW() and FindNextFileW() in the normal way. -- resolution: -> thir

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +23649 pull_request: https://github.com/python/cpython/pull/24888 ___ Python tracker ___

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +23650 pull_request: https://github.com/python/cpython/pull/24889 ___ Python tracker ___

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-15 Thread Inada Naoki
New submission from Inada Naoki : PEP 597 is accepted. -- components: IO messages: 388809 nosy: methane priority: normal severity: normal status: open title: PEP 597: Implemente encoding="locale" option and EncodingWarning versions: Python 3.10 ___ P

[issue41123] Remove Py_UNICODE APIs except PEP 623

2021-03-15 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue43506] PEP 624: Update document for removal schedule

2021-03-15 Thread Inada Naoki
Inada Naoki added the comment: New changeset 1330338583d183250186a8123b99d2283e945b4f by Inada Naoki in branch 'master': bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885) https://github.com/python/cpython/commit/1330338583d183250186a8123b99d2283e945b4f -

[issue43506] PEP 624: Update document for removal schedule

2021-03-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +23652 pull_request: https://github.com/python/cpython/pull/24891 ___ Python tracker ___ __

[issue43506] PEP 624: Update document for removal schedule

2021-03-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +23651 pull_request: https://github.com/python/cpython/pull/24890 ___ Python tracker _

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-15 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +23653 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19481 ___ Python tracker ___

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: As discussed in msg337357, the Windows API does not support setting the current working directory to a path that starts with \\?\ or \\.\. It's dysfunctional in many cases. Anyway, using a \\?\ path does not remove the length limit on the working directory, which

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset d0312cece9ce89d783687ff6dddaae6495e19fcf by Gregory P. Smith in branch '3.9': [3.9] bpo-43285: Add a What's New entry for 3.9.3. (GH-24888) https://github.com/python/cpython/commit/d0312cece9ce89d783687ff6dddaae6495e19fcf -- ___

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 9eda0dfff2884bf9272f37d4151ef2335f55066f by Gregory P. Smith in branch '3.8': [3.8] bpo-43285: Whats New entry for 3.8.9. (GH-24889) https://github.com/python/cpython/commit/9eda0dfff2884bf9272f37d4151ef2335f55066f -- __

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: 3.7 and 3.6 PRs updated to include a What's New entry. -- assignee: gregory.p.smith -> ned.deily priority: normal -> release blocker versions: -Python 3.10, Python 3.8, Python 3.9 ___ Python tracker

[issue43284] Inability to fetch build 20H2

2021-03-15 Thread OrbitalHorizons
OrbitalHorizons added the comment: Platform seems to have been fixed as all pre release builds were fetched as intended shortly after the post was created here, however Windows 10 Version 10.0.19042 is still unable to be displayed by the Python platform module in my Python 3.8.8 system. ---

[issue43506] PEP 624: Update document for removal schedule

2021-03-15 Thread miss-islington
miss-islington added the comment: New changeset a838e477a009bae4549f10bfd3396b8d5678415d by Miss Islington (bot) in branch '3.9': bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885) https://github.com/python/cpython/commit/a838e477a009bae4549f10bfd3396b8d5678415d

[issue34187] Issues with lazy fd support in _WindowsConsoleIO fileno() and close()

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: The issues brought up here are addressed in a more direct, comprehensive, and productive way in PR 1927 for bpo-30555. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> _io._WindowsConsoleIO breaks in the fa

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-15 Thread Eric V. Smith
Eric V. Smith added the comment: I think we could document where a "quoted string of length 8 characters would be returned in multiple pieces" occurs. Which API is that? If we change that, and if we call it an enhancement instead of a bug fix, then it can't be backported. It would be worth d

[issue43506] PEP 624: Update document for removal schedule

2021-03-15 Thread Inada Naoki
Inada Naoki added the comment: New changeset dc8558ef302f1b14b45c21abd7451e4fb56b4604 by Miss Islington (bot) in branch '3.8': bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885) https://github.com/python/cpython/commit/dc8558ef302f1b14b45c21abd7451e4fb56b4604 ---

[issue43506] PEP 624: Update document for removal schedule

2021-03-15 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue42578] Add tip when encountering UnicodeDecode/EncodeError in open()

2021-03-15 Thread Inada Naoki
Inada Naoki added the comment: PEP 597 is accepted. May I close this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue43499] Compiler warnings in building Python 3.9 on Windows

2021-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 651fc30af7ac6138764106b87632cabca56a98bb by Serhiy Storchaka in branch '3.9': bpo-43499: Silence compiler warnings about using legacy C API on Windows (GH-24873) https://github.com/python/cpython/commit/651fc30af7ac6138764106b87632cabca56a98b

[issue43511] Tk 8.6.11 slow on M1 Mac Mini MacOS Python 3.9.2 native ARM version

2021-03-15 Thread Thomas Wamm
New submission from Thomas Wamm : Comparing performance of a Tkinter graphics program with Python 3.9.2 on an M1 Mac Mini, I find it to be slower than earlier versions, and much slower than the same program running on other computers such as a Raspberry Pi 3B (Python 3.7.3). Initial investig

<    1   2