[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-11-10 Thread Hai Shi
Change by Hai Shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45637] The fallback to find the current frame in the gdb helpers fails for inlined frames

2021-11-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27767 pull_request: https://github.com/python/cpython/pull/29515 ___ Python tracker ___

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Miro Hrončok
Change by Miro Hrončok : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-11-10 Thread Martin
Martin added the comment: Thanks Joe! > 1. The changes are sufficient to let the user make things work the way it is > requested that they work and anyone who does not start using the new > format_locals parameter will get the old behavior. That was my goal :) > 2. A side comment: I just

[issue10483] http.server - what is executable on Windows

2021-11-10 Thread Éric Araujo
Éric Araujo added the comment: It’s not clear to me if CGI support in http.server is a relic or still something useful and in wide use. You can for sure make a pull request and see if a core dev will review and merge it, or you could raise the question on Discuss to see what people think.

[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

2021-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > this coincides with collection ABCs being made unavailable directly from > `collections` with this 3.9 -> 3.10 version change Direct access from collections was removed after being deprecated for almost almost a decade ago: "Using or importing

[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

2021-11-10 Thread Mark Dickinson
Mark Dickinson added the comment: On Mac, collections.abc is imported at startup time via site.py (which imports rlcompleter, which imports inspect, which imports collections.abc). I'd guess it's the same on Linux. mdickinson@mirzakhani cpython % ./python.exe Python 3.11.0a2+

[issue45779] multiprocessing initializer error with CPython 3.9.6 on Apple Silicon

2021-11-10 Thread Zhang Zheng
Zhang Zheng added the comment: Hi, I have encountered an error when working with concurrent.futures.ProcessPoolExecutor API, with CPython 3.9.6 on Apple Silicon, the error can not be reproduced with CPython 3.9.6 Linux/X86 build, so I think this might be related to the arch. I have created

[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

2021-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > On Mac, collections.abc is imported at startup time > via site.py (which imports rlcompleter, which imports > inspect, which imports collections.abc). In inspect.py, the import of collections.abc is only used inside isawaitable(). We could make that a

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-11-10 Thread Irit Katriel
Irit Katriel added the comment: New changeset 05fbd60147456d77a7aecf2986c5bde5872f by Irit Katriel in branch 'main': bpo-45711: Use _PyErr_ClearExcState instead of setting only exc_value to NULL (GH-29404) https://github.com/python/cpython/commit/05fbd60147456d77a7aecf2986c5bde5872f

[issue21501] docs: mmap example for use in documentation

2021-11-10 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the research! I will close the issue now. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread STINNER Victor
STINNER Victor added the comment: - _PyUnicode_DecodeUnicodeEscape@Base Removed by: commit 7c722e32bf582108680f49983cf01eaed710ddb9 Author: Serhiy Storchaka Date: Thu Oct 14 20:03:29 2021 +0300 [3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec

[issue45723] Improve and simplify configure.ac checks

2021-11-10 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27769 pull_request: https://github.com/python/cpython/pull/29517 ___ Python tracker ___

[issue44319] setup openssl failed on linux

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: Update: I came up with a hack that lets you use the openssl11 module from EPEL with Python:

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

2021-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also, the collections module could simply delete abc if it already exists due to collections.abc being imported first. -- ___ Python tracker

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45723] Improve and simplify configure.ac checks

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: New changeset 76d14fac72479e0f5f5b144d6968ecd9e594db34 by Erlend Egeberg Aasland in branch 'main': bpo-45723: Improve and simplify more configure.ac checks (GH-29485) https://github.com/python/cpython/commit/76d14fac72479e0f5f5b144d6968ecd9e594db34

[issue21501] docs: mmap example for use in documentation

2021-11-10 Thread Guido van Rossum
Guido van Rossum added the comment: We would need the OP to sign a CLA in order to be able to use (a modified version of) his code. I presume this page is where the example was supposed to go? https://docs.python.org/3/library/mmap.html Let me ask first -- does that page really need another

[issue45779] multiprocessing initializer error with CPython 3.9.6 on Apple Silicon

2021-11-10 Thread Zhang Zheng
New submission from Zhang Zheng : Hi, I have encountered an error when working with concurrent.futures.ProcessPoolExecutor API, with CPython 3.9.6 on Apple Silicon, the error can not be reproduced with CPython 3.9.6 Linux/X86 build, so I think this might be related to the arch. I have

[issue21501] docs: mmap example for use in documentation

2021-11-10 Thread mike mcleod
mike mcleod added the comment: One of the things I did when the example code didn't work was to see what other examples could be found and there are I would argue plenty or just enough, eg:

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: > I just installed it and can confirm that there's no embedded manifest in > "C:\Program > Files\WindowApps\PythonSoftwareFoundation.Python.3.9<...>\python.exe". Strange, because when I inspect the files that I published, it's there. It's also in the version

[issue45745] ./python -m test --help output for refleaks seems wrong

2021-11-10 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.6, regrtest failed if --findleaks was used and gc.garbage was not empty after a test completed. I modified regrtest to always run this check: --findleaks is now ignored. But I also modified --findleaks to make it an alias to the

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Eryk Sun
Eryk Sun added the comment: Ensure that the system has LongPathsEnabled set to 1. For example, in PowerShell with administrator (elevated) access: PS C:\> $p = "HKLM:\System\CurrentControlSet\Control\Filesystem" PS C:\> get-itempropertyvalue $p LongPathsEnabled 0 It was set to

[issue45637] The fallback to find the current frame in the gdb helpers fails for inlined frames

2021-11-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45774] Detect SQLite in configure.ac

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: I saw your message concerning sqlite3 on the FreeBSD buildbot. It's hard to tell why configure on FreeBSD doesn't find sqlite3.h without access to config.log or a shell. Maybe sqlite3 is installed in /usr/local ? ``configure`` does not use

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: We can detect majority of our dependencies with pkg-config. The use of pkg-config has some benefits: * Distro's provide the .pc files in their -dev / -devel packages. The presence of a .pc file indicates that all development dependencies are available. *

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45637] The fallback to find the current frame in the gdb helpers fails for inlined frames

2021-11-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 20205ad2b5be7eb3361224fd2502d1ba09c8ae4a by Pablo Galindo Salgado in branch 'main': bpo-45637: Fix cframe-based fallback in the gdb helpers (GH-29515) https://github.com/python/cpython/commit/20205ad2b5be7eb3361224fd2502d1ba09c8ae4a

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Abdullah Alnajim
Abdullah Alnajim added the comment: LongPathsEnabled value was already one. This issue comes with the new update (3.9.8) [Windows Store version]. I reinstalled the same version (3.9.8) from Windows Store, and the issue was still there. When I tried versions (3.10) and (3.9.7) from

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Abdullah Alnajim
New submission from Abdullah Alnajim : After updating python to the latest version, an issue related to reading files in long paths (>256 letters) is arisen. Whenever I try to read such a file in Windows 11, I got an exception telling me that the file is not there, even though it’s there and

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Matthias Klose
New submission from Matthias Klose : [reported in Debian as https://bugs.debian.org/998854] 3.9.8, compared to 3.9.7 introduces a regression, making at least one third party extension fail at runtime. The symbol changes in 3.9.8 are: - _PyUnicode_DecodeUnicodeEscape@Base +

[issue21501] docs: mmap example for use in documentation

2021-11-10 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I note that a few changes need to be made to the code example for compatibility for the latest version of Python. I can get this working but I am not sure this is a good example. Also, the example is more about threads and

[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

2021-11-10 Thread Steve Dower
Steve Dower added the comment: Since collections.abc is a module, it should work if you import it: >>> import collections.abc >>> collections.abc.Container Submodules being implicitly imported is not part of any API guarantee, which will be why somebody changed it without considering this

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-10 Thread Łukasz Wałejko
Łukasz Wałejko added the comment: I can also confirm that there is an regression in Python 3.9.8 regarding argparse For example, using watchdog 2.1.6 package Python 3.9.7 (correct behaviour) In [1]: from watchdog import watchmedo In [2]: watchmedo.cli.parse_args(["auto-restart", "echo",

[issue43923] Can't create generic NamedTuple as of py3.9

2021-11-10 Thread David Lukeš
David Lukeš added the comment: This is unfortunate, especially since it used to work... Going forward, is the intention not to support this use case? Or is it possible that support for generic NamedTuples will be re-added in the future? -- nosy: +dlukes

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, the ABI guarantees are for the public C-API (both the restricted/limited and the general one) but not for private symbols. -- ___ Python tracker

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: Matthias mentions the upstream tickets https://github.com/python/typed_ast/issues/169 https://github.com/python/typed_ast/issues/170 on the BDO. The issue affects typed-ast and indirectly older versions of black. Upstream is considering to EOL

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Eryk Sun
Eryk Sun added the comment: > Did my accidental breakage of the resource files make it > into the last 3.9 release? Yep, version 3.9.8 of the store app was built last Friday, the day after removing "winuser.h" from the resource definition files. I just installed it and can confirm that

[issue10483] http.server - what is executable on Windows

2021-11-10 Thread mike mcleod
mike mcleod added the comment: Should I go ahead and make the changes as per msg122208 ? on my local copy and test? -- ___ Python tracker ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-11-10 Thread STINNER Victor
STINNER Victor added the comment: So far, no PEP has been written. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45745] ./python -m test --help output for refleaks seems wrong

2021-11-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27766 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29514 ___ Python tracker ___

[issue45745] ./python -m test --help output for refleaks seems wrong

2021-11-10 Thread STINNER Victor
STINNER Victor added the comment: To check for reference leaks, memory leaks and file descriptor leaks: --huntrleaks/-R should be used. -- ___ Python tracker ___

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: Yes, they are private symbols. 3rd parties should not use them. The symbol _PyUnicode_DecodeUnicodeEscape was replace in GH-28953: "bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec". -- nosy: +christian.heimes

[issue45753] Further speed up Python-to-Python calls.

2021-11-10 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +27768 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29516 ___ Python tracker ___

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: I wonder if the Windows 11 upgrade process disables this registry key when it's set directly? That's not something we can fix (I don't think?), so we may just have to list it as an option. If you can, check whether running a Repair of your Python install

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: > Did my accidental breakage of the resource files make it into the last 3.9 > release? Turns out, no, it didn't. So this is something else. When I get to work later today I'll take a look. -- ___ Python tracker

[issue45759] Improve error messages for non-matching `elif`/`else` statements

2021-11-10 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- pull_requests: +27765 pull_request: https://github.com/python/cpython/pull/29513 ___ Python tracker ___

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Aren't these private symbols? -- nosy: +pablogsal ___ Python tracker ___ ___

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread Matthias Klose
Matthias Klose added the comment: the two users of typed-ast (at least in Debian) are black and mypy. Apparently black stopped using typed-ast recently. -- ___ Python tracker

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: Oh, no, wait. Did my accidental breakage of the resource files make it into the last 3.9 release? If so, we probably lost the manifest option to opt-in to supporting long paths, and perhaps Windows 11 has decided to start honouring that (Windows 10 ignored

[issue45778] libpython.so 3.9.8 drops symbol used by third party extension module(s)

2021-11-10 Thread STINNER Victor
STINNER Victor added the comment: I suggest to close this issue. We are free to remove private functions in minor releases (3.9.x) without any warning. Private functions are excluded from the backward compatibility warranty. For example: "Names prefixed by an underscore, such as

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Eryk Sun
Eryk Sun added the comment: > How are you checking whether it's there or not? The desktop distribution of 3.9.8 is the most obvious case, since it causes sys.getwindowsversion() to report Windows 8.0 (6.2.9200): C:\Temp>"C:\Program Files\Python39\python.exe" -q >>> import sys

[issue45776] abc submodule not an attribute of collections on Python 3.10.0 on Windows

2021-11-10 Thread Steve Canny
Steve Canny added the comment: The resolution for me (the python-pptx and python-docx libraries) is clear, to add a separate `import collections.abc` statement rather than assuming (hoping) that the `collections.abc` module is available on an `abc` attribute of the `collections` module. I

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unless anyone objects, I'll revert this across all affected branches. -- ___ Python tracker ___

[issue45757] compiler emits EXTENDED_ARG + NOP sequence in 3.10

2021-11-10 Thread Brandt Bucher
Brandt Bucher added the comment: Here's a (more) minimal reproducer I've been able to create: ``` # First, "use up" 256 unique constants: spam=0x00;spam=0x01;spam=0x02;spam=0x03;spam=0x04;spam=0x05;spam=0x06;spam=0x07;

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-10 Thread Łukasz Langa
Łukasz Langa added the comment: Go for it, Raymond. -- nosy: +lukasz.langa resolution: fixed -> stage: test needed -> needs patch ___ Python tracker ___

[issue45696] "Deep-freeze": skip the marshal step by generating C code

2021-11-10 Thread Guido van Rossum
Guido van Rossum added the comment: After PR 29118 is merged we get the benefits on UNIXy systems. We have several TODOs left then: - (Definitely:) Generate Windows build files - (Probably:) Find a way to avoid having to regenerate everything whenever any source file changes (any source

[issue45091] inspect.Parameter.__str__ does not include subscripted types in annotations

2021-11-10 Thread Andrei Kulakov
Andrei Kulakov added the comment: I have confirmed and tested -- this was fixed in https://github.com/python/cpython/pull/29212 and so I'm closing it as fixed. -- nosy: +andrei.avk, kj resolution: -> fixed stage: -> resolved status: open -> closed

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-11-10 Thread Mark Shannon
Mark Shannon added the comment: New changeset 4cdeee5978ee3f8ea7fe95172ae04d866cd88177 by Irit Katriel in branch 'main': bpo-45711: remove unnecessary DUP_TOP and POP in exception handling (GH-29495) https://github.com/python/cpython/commit/4cdeee5978ee3f8ea7fe95172ae04d866cd88177

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-10 Thread Guido van Rossum
Guido van Rossum added the comment: This has caused a regression, also reported here: https://github.com/Azure/azure-cli/issues/20269 Global Arguments stop working in Python 3.9.8 Can we please get some attention from @rhettinger and @ambv? -- nosy: +gvanrossum

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: Marking this as fixed, because the fix is already checked in. Release scheduling is a separate conversation, so keep an eye out for the next release. -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Steve Dower
Steve Dower added the comment: Oh I think I know what happened. Because RT_MANIFEST wasn't defined, it was added as a resource tagged with that as a string. So the manifest is still embedded, just not under the right type constant, so it has no effect. Yeah, I think we should do a fresh

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-11-10 Thread Andrei Kulakov
Andrei Kulakov added the comment: This was fixed in https://github.com/python/cpython/commit/dd7b816ac87, perhaps this should be closed as fixed? It sounds like the general solution is beyond the scope of this issue and doesn't need to be tracked here. -- nosy: +andrei.avk

[issue45747] Detect dbm and gdbm dependencies in configure.ac

2021-11-10 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue10483] http.server - what is executable on Windows

2021-11-10 Thread mike mcleod
mike mcleod added the comment: I have put the question on Discuss and wait for (any) responses, -- ___ Python tracker ___ ___

[issue45754] [sqlite3] SQLITE_LIMIT_LENGTH is incorrectly used to check statement length

2021-11-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c1323d4b8cb010a06c11bace6e681bea7f895851 by Erlend Egeberg Aasland in branch 'main': bpo-45754: Use correct SQLite limit when checking statement length (GH-29489)

[issue43923] Can't create generic NamedTuple as of py3.9

2021-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for reverting this change and restoring the previous behavior. -- ___ Python tracker ___

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-11-10 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +27770 pull_request: https://github.com/python/cpython/pull/29518 ___ Python tracker ___

[issue45747] Detect dbm and gdbm dependencies in configure.ac

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: New changeset 0a9f69539be27acf1cddf1b58d02a88d02e5008d by Christian Heimes in branch 'main': bpo-45747: Detect gdbm/dbm dependencies in configure (GH-29467) https://github.com/python/cpython/commit/0a9f69539be27acf1cddf1b58d02a88d02e5008d --

[issue45780] dict. keys view behaviour diverges from set()

2021-11-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: dict. keys view behavious diverges from set() -> dict. keys view behaviour diverges from set() ___ Python tracker ___

[issue43923] Can't create generic NamedTuple as of py3.9

2021-11-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45780] dict. keys view behavious diverges from set()

2021-11-10 Thread Gregory P. Smith
New submission from Gregory P. Smith : Python 3.9.7 (default, Sep 24 2021, 09:43:00) [GCC 10.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> dict(a=3,b=5).keys() dict_keys(['a', 'b']) >>> dict(a=3,b=5).keys() - 'a' {'b'} >>> dict(a=3,b=5).keys() - 'ab'

[issue45780] dict. keys view behavious diverges from set()

2021-11-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: Interpreter Core nosy: gregory.p.smith priority: normal severity: normal stage: needs patch status: open title: dict. keys view behavious diverges from set() type: behavior versions: Python 3.11 ___ Python

[issue45780] dict. keys view behaviour diverges from set()

2021-11-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Joshua pointed out that https://bugs.python.org/issue26973 appears to cover this. we rejected the idea of changing it at the time. it'd still be nice. -- ___ Python tracker

[issue45754] [sqlite3] SQLITE_LIMIT_LENGTH is incorrectly used to check statement length

2021-11-10 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: gdbmmodule and dbmmodule need special treatment anyway. macOS has dbm-API build into libc. Linux has either libgdbm_compat, libndbm, or libdb. The --with-dbmliborder makes it even more interesting. Users can override in which order they want to probe for

[issue45766] Add direct proportion option to statistics.linear_regression()

2021-11-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Raymond, I'm conflicted by this. Regression through the origin is clearly a thing which is often desired. In that sense, I'm happy to see it added, and thank you. But on the other hand, this may open a can of worms that I personally don't feel entirely

[issue45780] dict. keys view behaviour diverges from set()

2021-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a bug dictviews_sub(). It that incorrectly calls difference_update() instead of set_isub() which would perform the requisite type check. Note the KeysView ABC is correct and implements the type check. This situation is unfortunate. Adding the

[issue45723] Improve and simplify configure.ac checks

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: New changeset fc9b62281931da8d20f85d5ed44cfc24f068d3f4 by Christian Heimes in branch 'main': bpo-45723: Add --with-pkg-config to configure (GH-29517) https://github.com/python/cpython/commit/fc9b62281931da8d20f85d5ed44cfc24f068d3f4 --

[issue45357] Idle does not check user config for extention configuration

2021-11-10 Thread CoolCat467
CoolCat467 added the comment: In a classroom circumstance, yes, that kind of makes sense, but at the moment, if you want to add an extension you have to either manually edit the file, or let a automated script touch your entire system with root permissions that could be doing who knows what

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Brett Cannon
Brett Cannon added the comment: SGTM! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Ned Deily
Ned Deily added the comment: SGTM,2 This all sounds great. I think a goal here should be to remove all header and lib file searching from setup.py as that has always been a bug magnet. Perhaps one workaround for those libs that don't (yet) provide .pc files would be for us to supply

[issue45550] Increase the information content and robustness of tp_version_tag.

2021-11-10 Thread Mark Shannon
Change by Mark Shannon : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2021-11-10 Thread Ned Batchelder
Ned Batchelder added the comment: I went ahead and changed the coverage.py code to this: #if PY_VERSION_HEX >= 0x030B00A0 // 3.11 moved f_lasti into an internal structure. This is totally the wrong way // to make this work, but it's all I've got until https://bugs.python.org/issue40421 // is

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP/INPLACE_OP

2021-11-10 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 9178f533ff5ea7462a2ca22cfa67afd78dad433b by Brandt Bucher in branch 'main': bpo-45636: Merge all numeric operators (GH-29482) https://github.com/python/cpython/commit/9178f533ff5ea7462a2ca22cfa67afd78dad433b --

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP

2021-11-10 Thread Brandt Bucher
Brandt Bucher added the comment: Tasks for tomorrow: - Reimplement the string formatting fast-path as a proper specialization. - Try indexing into an array of function pointers instead of switching. - Experiment more generic specializations for all operators (for instance, when lhs.__class__

[issue45735] Promise the long-time truth that `args=list` works

2021-11-10 Thread Tim Peters
Tim Peters added the comment: Changed stage back to "needs patch", since Raymond appears to have closed his PR. Raymond, what's up with that? -- stage: patch review -> needs patch ___ Python tracker

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP

2021-11-10 Thread Brandt Bucher
Change by Brandt Bucher : -- title: Merge BINARY_*/INPLACE_* into BINARY_OP/INPLACE_OP -> Merge BINARY_*/INPLACE_* into BINARY_OP ___ Python tracker ___

[issue45696] "Deep-freeze": skip the marshal step by generating C code

2021-11-10 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 1cbaa505d007e11c4a1f0d2073d72b6c02c7147c by Guido van Rossum in branch 'main': bpo-45696: Deep-freeze selected modules (GH-29118) https://github.com/python/cpython/commit/1cbaa505d007e11c4a1f0d2073d72b6c02c7147c --

[issue45020] Freeze all modules imported during startup.

2021-11-10 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 1cbaa505d007e11c4a1f0d2073d72b6c02c7147c by Guido van Rossum in branch 'main': bpo-45696: Deep-freeze selected modules (GH-29118) https://github.com/python/cpython/commit/1cbaa505d007e11c4a1f0d2073d72b6c02c7147c --

[issue45766] Add direct proportion option to statistics.linear_regression()

2021-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sure, I’m happy to wait. My thoughts: * The first link you provided does give the same slope across packages. Where they differ is in how they choose to report statistics for assessing goodness of fit or for informing hypothesis testing. Neither of