[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

[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 ___ ___

[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

[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

[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

[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

[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.

[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

[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: 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 --

[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

[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 ___

[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

[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 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

[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 ___ ___

[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 ___

[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 ___

[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 ___

[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: ->

[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

[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 ___

[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 ___

[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 --

[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

[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 ___ ___

[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

[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.

[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

[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 ___

[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

[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

[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:

[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

[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

[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 ___

[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 ___ ___

[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

[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

[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

[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

[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 ___

[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 ___

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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

[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

[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:

[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 ___

[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

[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",

[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

[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

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

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: A What's New entry is a good idea. I'll make one and add it to those backport PRs. (reopened to remind me of that) ftplib docs... I don't actually want to document the attribute that people can set for the old behavior beyond the notes in NEWS or What's

[issue43492] Upgrade to SQLite 3.35.1 in macOS and Windows

2021-03-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Bug-fix release 3.35.1 is out bco. https://sqlite.org/src/info/1c24a659e6d7f3a1 -- title: Upgrade to SQLite 3.35.0 in macOS and Windows -> Upgrade to SQLite 3.35.1 in macOS and Windows ___ Python tracker

[issue29805] Support moving across filesystems in pathlib.Path, as shutil.move() does

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- components: -Windows title: Pathlib.replace cannot move file to a different drive on Windows if filename different -> Support moving across filesystems in pathlib.Path, as shutil.move() does versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-03-15 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland nosy_count: 7.0 -> 8.0 pull_requests: +23644 pull_request: https://github.com/python/cpython/pull/24884 ___ Python tracker

[issue43416] Add README files in Include/cpython and Include/internal

2021-03-15 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch nosy: +erlendaasland nosy_count: 3.0 -> 4.0 pull_requests: +23643 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24884 ___ Python tracker

[issue24829] Use interactive input even if stdout is redirected

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- dependencies: +Python interactive console doesn't use sys.stdin for input versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker

[issue17620] Python interactive console doesn't use sys.stdin for input

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

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-15 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > @BTaskaya, do you have any interest in helping me iterate on new AST nodes? Sure! -- ___ Python tracker ___

[issue43500] Add filtercase() into fnmatch

2021-03-15 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43486] Python 3.9 installer not updating ARP table

2021-03-15 Thread Steve Dower
Steve Dower added the comment: Leaving the launcher behind is deliberate. Otherwise you might install/uninstall 3.10 alpha and lose the launcher completely. I can't trivially reproduce the ARP issue, so we'll need some more information. If possible, can you grab the install logs from %TEMP%

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

2021-03-15 Thread Guido van Rossum
Guido van Rossum added the comment: I can never remember what "Py_LIMITED_API" stands for. If it's not defined, does that mean we have the *unlimited* API? Is that a superset or a subset of the limited API? Regarding 1a *and* 1b, I think it would help to list the specific reasons

[issue11339] annotation for class being defined

2021-03-15 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-15 Thread Brandt Bucher
Brandt Bucher added the comment: @BTaskaya, do you have any interest in helping me iterate on new AST nodes? -- ___ Python tracker ___

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2021-03-15 Thread doublex
doublex added the comment: Example code (fails): import os, concurrent.futures def parallel_callback( arg ): return os.getpid() def parallel( *args ): def thread_callback( param ): with concurrent.futures.ProcessPoolExecutor(max_workers=1) as executor: future =

[issue11339] annotation for class being defined

2021-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this issue resolved with PEP 563 and the behavior becoming default in Python 3.10? https://www.python.org/dev/peps/pep-0563/#forward-references -- nosy: +xtreak ___ Python tracker

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tests can be fixed. The change to raise exception can be merged to gather feedback during alpha/beta and see if there are any valid usecases. -- ___ Python tracker

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

2021-03-15 Thread Ned Deily
Ned Deily added the comment: @gps, What about ftplib doc changes and What's new entries for this change in behavior? -- ___ Python tracker ___

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Matthew Suozzo
Matthew Suozzo added the comment: I've fixed a bunch of these in our internal repo so I'd be happy to add that to a patch implementing raising exceptions for these cases. -- ___ Python tracker

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

2021-03-15 Thread Eric Snow
Change by Eric Snow : -- components: +Extension Modules, Interpreter Core, Subinterpreters ___ Python tracker ___ ___

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

2021-03-15 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +23642 stage: needs patch -> patch review 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 Eric Snow
Change by Eric Snow : -- nosy: +Mark.Shannon, nascheme, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Chris Withers
Chris Withers added the comment: I agree that this should raise an exception. Can the two failing tests in mock's own suite be easily fixed? -- ___ Python tracker ___

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

2021-03-15 Thread Eric Snow
Eric Snow added the comment: If the stable ABI weren't an issue then we would probably: * deprecate using the objects directly * do something like (2a) in the meantime It may make sense to do that for "#ifndef Py_LIMITED_API", regardless of how we handle the limited API. --

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

2021-03-15 Thread Eric Snow
Eric Snow added the comment: Here are some solutions that I've considered: 1. immutable objects a. make the objects truly immutable/const * not trivial, if possible b. make the objects effectively immutable * (see GH-24828) use a really high refcount to make races irrelevant

[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 backport PRs created and assigned to release manager Ned for merging. -- nosy: +ned.deily resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker

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

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

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

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

[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 664d1d16274b47eea6ec92572e1ebf3939a6fa0c by Gregory P. Smith in branch '3.8': [3.8] bpo-43285 Make ftplib not trust the PASV response. (GH-24838) (GH-24881) https://github.com/python/cpython/commit/664d1d16274b47eea6ec92572e1ebf3939a6fa0c

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

2021-03-15 Thread miss-islington
miss-islington added the comment: New changeset 7dcb4baa4f0fde3aef5122a8e9f6a41853ec9335 by Miss Islington (bot) in branch '3.9': bpo-43285 Make ftplib not trust the PASV response. (GH-24838) https://github.com/python/cpython/commit/7dcb4baa4f0fde3aef5122a8e9f6a41853ec9335 --

[issue11339] annotation for class being defined

2021-03-15 Thread Socob
Change by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40255] Fixing Copy on Writes from reference counting

2021-03-15 Thread Eric Snow
Eric Snow added the comment: While the eventual solution may overlap, my interests are divergent enough from those here that I've created a separate issue: bpo-43503. -- ___ Python tracker

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

2021-03-15 Thread Eric Snow
New submission from Eric Snow : In the limited C-API we expose the following static PyObject variables: * 5 singletons * ~70 exception types * ~70 other types Since they are part of the limited API, they have a direct effect on the stable ABI. The problem is that these objects should not be

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-03-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list

[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: +23639 pull_request: https://github.com/python/cpython/pull/24881 ___ Python tracker ___

[issue43371] Mock.assert_has_calls works strange

2021-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.assert_has_calls > If any_order is false then the calls must be sequential. There can be extra > calls before or after the specified calls. One way to check that the calls

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

2021-03-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +23638 pull_request: https://github.com/python/cpython/pull/24880 ___ Python tracker

[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 0ab152c6b5d95caa2dc1a30fa96e10258b5f188e by Gregory P. Smith in branch 'master': bpo-43285 Make ftplib not trust the PASV response. (GH-24838) https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e --

[issue43355] __future__.annotations breaks inspect.signature()

2021-03-15 Thread Florian Bruhin
Change by Florian Bruhin : -- nosy: +The Compiler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-15 Thread Florian Bruhin
Florian Bruhin added the comment: Ah, I wasn't aware of that, thanks for the pointer! So what inspect does internally is: def _get_type_hints(func, **kwargs): try: return typing.get_type_hints(func, **kwargs) except Exception: # First, try to use

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: For a simple experiment raising an exception I can see two tests failing in test suite that have the pattern of having an autospec which is a mock object. diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 720f682efb..d33c7899a1 100644

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord ___ Python tracker ___ ___

  1   2   >