[issue39298] add BLAKE3 to hashlib

2022-03-04 Thread Larry Hastings
Larry Hastings added the comment: Jack O'Connor: > Was any of the experimental C extension code [...] useful to you? > I was wondering if it could be possible to copy blake3module.c from > there verbatim. I concede I didn't even look at it. The glue code to mate the library with the CPython

[issue30556] asyncio.wait very slow with FIRST_COMPLETED

2022-03-04 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36098] asyncio: ssl client-server with "slow" read

2022-03-04 Thread Kumar Aditya
Kumar Aditya added the comment: This has been fixed with bpo-44011 on main branch. Output on main branch: -- /workspaces/cpython/main.py:42: DeprecationWarning: There is no current event loop loop =

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

2022-03-04 Thread Guido van Rossum
Guido van Rossum added the comment: So if it doesn't work in mypy why bother making it work at runtime? Is there an actual use case that broke? (There might be, but probably esoteric if nobody's run into it until now.) -- ___ Python tracker

[issue46925] Replace key if not identical to old key in dict

2022-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Jelle and Methane that we can't do this without breaking code. Also if you don't care about dict order, the work around is easy. Just remove the old key: d.pop(k); d[k] = v -- nosy: +rhettinger resolution: -> rejected stage:

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-03-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: We could make my proposed overload registry more reusable by putting it in a different module, probably functools. (Another candidate is inspect, but inspect.py imports functools.py, so that would make it difficult to use the registry for

[issue46925] Replace key if not identical to old key in dict

2022-03-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: As @methane also said on the PR, this is a backward compatibility break and we can't just change the behavior. I'd be opposed to a change here: the proposed behavior isn't clearly better than the existing behavior (sometimes you want one behavior, sometimes

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

2022-03-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: It doesn't really. If you do `x = New([1], (2, 3))` you get: main.py:11: error: List item 0 has incompatible type "int"; expected "T" main.py:11: error: Argument 2 to "New" has incompatible type "Tuple[int, int]"; expected "Tuple[T, T]"

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

2022-03-04 Thread Guido van Rossum
Guido van Rossum added the comment: Mypy seems to allow this: from typing import NamedTuple, TypeVar, Generic, List, Tuple T = TypeVar("T") class New(NamedTuple, Generic[T]): x: List[T] y: Tuple[T, T] It's true that pyright doesn't, but maybe that's because it doesn't work in

[issue24132] Direct sub-classing of pathlib.Path

2022-03-04 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +29812 pull_request: https://github.com/python/cpython/pull/31691 ___ Python tracker ___

[issue44136] Remove pathlib flavours

2022-03-04 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +29813 pull_request: https://github.com/python/cpython/pull/31691 ___ Python tracker ___

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

2022-03-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Was this ever documented to work? We have now disallowed this behavior in 3.9 and 3.10 with few complaints, so it doesn't seem that important to restore it. Also, static type checkers generally disallow generic NamedTuples. --

[issue46798] xml.etree.ElementTree: get() doesn't return default value, always ATTLIST value

2022-03-04 Thread Jacob Walls
Jacob Walls added the comment: I agree not a bug. To ignore the document default you can set `specified_attributes` on the parser as documented: https://docs.python.org/3/library/pyexpat.html#xml.parsers.expat.xmlparser.specified_attributes Also, this was explicitly worked on recently in

[issue46926] runpy.run_path didn't set __package__ to None as describe in doc

2022-03-04 Thread Charlie Yan
Change by Charlie Yan : -- title: runpy.run_path didn't set __package__ as describe in doc -> runpy.run_path didn't set __package__ to None as describe in doc ___ Python tracker

[issue46926] runpy.run_path didn't set __package__ as describe in doc

2022-03-04 Thread Charlie Yan
New submission from Charlie Yan : As described in the doc: https://docs.python.org/3.8/library/runpy.html#runpy.run_path > If the supplied path directly references a script file (whether as source or > as precompiled byte code), then __file__ will be set to the supplied path, > and

[issue46925] Replace key if not identical to old key in dict

2022-03-04 Thread Malthe Borch
New submission from Malthe Borch : When a key that is equal to an existing key (but not the same object identity) is used to set a new value, the key itself is not replaced. This manifests perhaps most clearly in `weakref.WeakKeyDictionary` where keys can mysteriously disappear. Consider

[issue46860] `--with-suffix` not respected on case-insensitive file systems

2022-03-04 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46923] Implement stack overflow protection for supported platforms

2022-03-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Personally I'd prefer a new exception `StackOverflow` to `MemoryError` +1 on a new exception (presumably a subclass of MemoryError). How about using OverflowedStack instead? The situation is not quite as bad as you suggest. Googling for "stack overflow"

[issue46914] On Osx Monterey(12.x), Logging.handlers.SysLogHandler does not work

2022-03-04 Thread Philip Bloom
Philip Bloom added the comment: > Do you mean just adding a note to the effect that SysLogHandler won't work on > macOS 12.2 because of changes to the syslog daemon on that platform? Yes or removing the specific guidance about OSX handling on it, mostly just to reduce folks coming to ask as

[issue46896] add support for watching writes to selected dictionaries

2022-03-04 Thread Carl Meyer
Carl Meyer added the comment: Thanks for the feedback! > Why so coarse? Simplicity of implementation is a strong advantage, all else equal :) And the coarse version is a) at least somewhat proven as useful and usable already by Cinder / Cinder JIT, and b) clearly doable without introducing

[issue38738] Fix formatting of True and False

2022-03-04 Thread miss-islington
miss-islington added the comment: New changeset fa69ec89393549a18944b3b92943709dac56a36a by Miss Islington (bot) in branch '3.10': bpo-38738: Fix formatting of True and False in the threading documentation (GH-31678)

[issue38738] Fix formatting of True and False

2022-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 46a116c1c9f6b60a3d35ab9a419f8eee5de2542e by Géry Ogam in branch 'main': bpo-38738: Fix formatting of True and False in the threading documentation (GH-31678) https://github.com/python/cpython/commit/46a116c1c9f6b60a3d35ab9a419f8eee5de2542e

[issue38738] Fix formatting of True and False

2022-03-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +29810 pull_request: https://github.com/python/cpython/pull/31690 ___ Python tracker

[issue38738] Fix formatting of True and False

2022-03-04 Thread Géry
Change by Géry : -- nosy: +maggyero nosy_count: 4.0 -> 5.0 pull_requests: +29809 pull_request: https://github.com/python/cpython/pull/31678 ___ Python tracker ___

[issue45828] [sqlite3] use unraisable exceptions in callbacks

2022-03-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46924] make install hangs when installing zoneinfo/_zoneinfo.py

2022-03-04 Thread AmericanEnglish
New submission from AmericanEnglish : I am currently trying to compile Python 3.10.2 from source. Everything seems to compile fine when doing a configure then a make. When I do make install though the install process hangs when compiling zoneinfo/_zoneinfo.py . Currently there are 6 python

[issue46841] Inline bytecode caches

2022-03-04 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset c4d2d57eefb1224a12e2e95e4508658dfbf6a7c9 by Brandt Bucher in branch 'main': bpo-46841: Fix BINARY_OP's handling of inline caches (GH-31671) https://github.com/python/cpython/commit/c4d2d57eefb1224a12e2e95e4508658dfbf6a7c9 --

[issue25415] [io doc] Reword "there is no public constructor"

2022-03-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25415] [io doc] Reword "there is no public constructor"

2022-03-04 Thread miss-islington
miss-islington added the comment: New changeset bdce1880365990403efdbeb60c4928c996370b0c by Miss Islington (bot) in branch '3.10': bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631) https://github.com/python/cpython/commit/bdce1880365990403efdbeb60c4928c996370b0c

[issue25415] [io doc] Reword "there is no public constructor"

2022-03-04 Thread miss-islington
miss-islington added the comment: New changeset 01df048831eb631dfee41175f08d09b9ad1a9538 by Miss Islington (bot) in branch '3.9': bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631) https://github.com/python/cpython/commit/01df048831eb631dfee41175f08d09b9ad1a9538

[issue39298] add BLAKE3 to hashlib

2022-03-04 Thread Christian Heimes
Christian Heimes added the comment: GH-31686 is a massive patch set. I'm feeling uncomfortable adding such much new code for a new hashing algorithm. Did you ask the Steering Council for approval? The platform detection and compiler flag logic must be added to configure.ac instead of

[issue29971] threading.Lock.acquire() not interruptible on Windows

2022-03-04 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45274] Race condition in Thread._wait_for_tstate_lock()

2022-03-04 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39298] add BLAKE3 to hashlib

2022-03-04 Thread Jack O'Connor
Jack O'Connor added the comment: Thanks Larry! Was any of the experimental C extension code under https://github.com/oconnor663/blake3-py/tree/master/c_impl useful to you? I was wondering if it could be possible to copy blake3module.c from there verbatim. The setup.py build there also has

[issue46922] tarfile.TarFile.next() crashes on empty tar files

2022-03-04 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17505] [doc] email.header.Header.__unicode__ does not decode header

2022-03-04 Thread Vidhya
Vidhya added the comment: @hniksic: Thanks for your suggestions. I will look into BytesFeedParser documents. @david.murray: I can help you for the switch over to the default in the default policy and update the deprecation as well. It will be good if someone can guide me on this. Being a

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

2022-03-04 Thread Guido van Rossum
Guido van Rossum added the comment: Couldn't there be a subtler solution than rolling back GH-19371? -- ___ Python tracker ___ ___

[issue46896] add support for watching writes to selected dictionaries

2022-03-04 Thread Brandt Bucher
Brandt Bucher added the comment: > Why so coarse? > Getting a notification for every change of a global in module, is likely to > make use the use of global variables extremely expensive. Perhaps a compromise is possible here: one global group/chain of callbacks registered for all

[issue25415] [io doc] Reword "there is no public constructor"

2022-03-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +29808 pull_request: https://github.com/python/cpython/pull/31689 ___ Python tracker ___

[issue25415] [io doc] Reword "there is no public constructor"

2022-03-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +29807 pull_request: https://github.com/python/cpython/pull/31688 ___ Python tracker

[issue25415] [io doc] Reword "there is no public constructor"

2022-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset cedd2473a9bebe07f3ced4f341cf58a2fef07b03 by slateny in branch 'main': bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631) https://github.com/python/cpython/commit/cedd2473a9bebe07f3ced4f341cf58a2fef07b03 --

[issue46923] Implement stack overflow protection for supported platforms

2022-03-04 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46923] Implement stack overflow protection for supported platforms

2022-03-04 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46389] 3.11: unused generator comprehensions cause f_lineno==None

2022-03-04 Thread Mark Shannon
Change by Mark Shannon : -- stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46923] Implement stack overflow protection for supported platforms

2022-03-04 Thread Mark Shannon
New submission from Mark Shannon : https://github.com/python/steering-council/issues/102 (definitely not PEP 651 ;)) We should implement efficient stack checks on those platforms that allow us to introspect stack extents. Windows and posix systems allow us to do this. C allows addresses of

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-04 Thread Ned Deily
Change by Ned Deily : -- title: Update Windows installer to use BZip 1.0.8 -> Update Windows installer to use bzip2 1.0.8 ___ Python tracker ___

[issue44549] Update Windows installer to use BZip 1.0.8

2022-03-04 Thread Ned Deily
Change by Ned Deily : -- assignee: -> steve.dower priority: normal -> critical title: BZip 1.0.6 Critical Vulnerability -> Update Windows installer to use BZip 1.0.8 versions: +Python 3.10, Python 3.11 ___ Python tracker

[issue46794] Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs)

2022-03-04 Thread sping
sping added the comment: Hi mattip, at the core the problem is not the use of non-URI character "}" for a namespace separator but the use of non-URI character "}" in a namespace URI. test_issue3151 is mistaken (meaning that non-URI characters in URIs are malformed XML) and the test has

[issue46922] tarfile.TarFile.next() crashes on empty tar files

2022-03-04 Thread progval
New submission from progval : Hi, I found two related bugs when calling tarfile.TarFile.next() on an empty tar file, both when trying to seek when it should not: import io import tarfile # Create a tarball with no member: fd = io.BytesIO() with tarfile.open(fileobj=fd, mode="w") as tf:

[issue46921] Vectorcall support for super()

2022-03-04 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +29806 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31687 ___ Python tracker ___

[issue46921] Vectorcall support for super()

2022-03-04 Thread Ken Jin
New submission from Ken Jin : This is related to bpo-46564. The changes are less ambitious but should produce a nice speedup. -- messages: 414535 nosy: kj priority: normal severity: normal status: open title: Vectorcall support for super() versions: Python 3.11

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-03-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset d168c728f7114959e8fc147538ea1d24f2f5af79 by Dong-hee Na in branch 'main': bpo-46541: Remove usage of _Py_IDENTIFIER from lzma module (GH-31683) https://github.com/python/cpython/commit/d168c728f7114959e8fc147538ea1d24f2f5af79 --

[issue46919] After Python 3.9.2 is installed, the CVE-2019-12900 and CVE-2016-3189 vulnerabilities exist in Python39/DLLs/_bz2.pyd.

2022-03-04 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> BZip 1.0.6 Critical Vulnerability ___ Python tracker ___

[issue39298] add BLAKE3 to hashlib

2022-03-04 Thread Larry Hastings
Larry Hastings added the comment: Also, for what it's worth: I just ran my checksum benchmarker using a freshly built python a la my PR. Here are my results when hashing 462183782 bytes (dicey-dungeons-linux64.zip): hash algorithm timebytes/sec

[issue39298] add BLAKE3 to hashlib

2022-03-04 Thread Larry Hastings
Larry Hastings added the comment: Okay, so. Here's a PR that adds BLAKE3 support to hashlib. The code was straightforward; I just took the BLAKE2 module and modified it to only have one algorithm. I also copied over the whole C directory tree from BLAKE3, which is totally okay fine by

[issue39298] add BLAKE3 to hashlib

2022-03-04 Thread Larry Hastings
Change by Larry Hastings : -- pull_requests: +29805 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31686 ___ Python tracker ___

[issue46430] intern strings in deepfrozen modules

2022-03-04 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -29803 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-03-04 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +29804 pull_request: https://github.com/python/cpython/pull/31683 ___ Python tracker ___

[issue46430] intern strings in deepfrozen modules

2022-03-04 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +29803 pull_request: https://github.com/python/cpython/pull/31683 ___ Python tracker ___

[issue46896] add support for watching writes to selected dictionaries

2022-03-04 Thread Mark Shannon
Mark Shannon added the comment: Why so coarse? Getting a notification for every change of a global in module, is likely to make use the use of global variables extremely expensive. ``` var = 0 CONST = 1 def foo(...): ... ``` I may well want to be notified if `foo` or `CONST` gets

[issue46311] Clean up PyLong_FromLong and PyLong_FromLongLong

2022-03-04 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue17505] [doc] email.header.Header.__unicode__ does not decode header

2022-03-04 Thread R. David Murray
R. David Murray added the comment: The policy is named 'default' because it was intended to become the default two feature releases after the new email code became non-provisional (first: deprecate not specifying an explicit policy, next release make default the default policy and make the

[issue31613] Localize tkinter.simpledialog.Default buttons as with file dialogs.

2022-03-04 Thread Sampo Hippeläinen
Sampo Hippeläinen added the comment: >Tk does not provide localized [Ok] and [Cancel] buttons. This is not true. You can call ::msgcat::mc to localize core strings such as "OK" and "Cancel". The full tk.call becomes tk.call("namespace", "eval", "::tk", "::msgcat::mc", s) to translate a

[issue31613] Localize tkinter.simpledialog.Default buttons as with file dialogs.

2022-03-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +29801 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31682 ___ Python tracker

[issue46918] The vulnerability is included in /lib/python3.9/ensurepip after python 3.9.2 is installed.

2022-03-04 Thread Ned Deily
Ned Deily added the comment: To emphasize, Python 3.9.2 is obsolete and no longer supported; at the moment, the current release of Python 3.9 is 3.9.10. The most current bugfix release (3.9.x) obsoletes all previous releases of that Python version (3.9); during a version's support

[issue5043] get_msvcr() returns None rather than []

2022-03-04 Thread Alex Zunegin
Alex Zunegin added the comment: This messes up building Cython extensions on MSYS2 and MINGW. Still here as of setuptools 60. There is no line ``` return [] - ``` at the end. Adding it helps. -- nosy: +gesserat ___ Python

[issue46794] Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs)

2022-03-04 Thread mattip
mattip added the comment: On PyPy, the test `test_issue3151` in `test_xml_etree.py` is failing with libexpat 2.4.6. I think the problem is connected to instantiation of the `XMLParser()` with `parser = expat.ParserCreate(encoding, "}")` where `"}"` is not a valid URI character. In any case,

[issue46916] There is a problem with escape characters in the path passed in by pathlib.Path.mkdir()

2022-03-04 Thread Vincent FUNG
Vincent FUNG added the comment: Thank you very much for your patient answer, I am still a developer who has just started, and it seems that I need to learn more about it. I used repr().replace to replace with forward slashes, and also restricted paths ending in a slash to Improve

[issue46841] Inline bytecode caches

2022-03-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset 586b24d3be1aec5d2568b070a249b4d75e608782 by Brandt Bucher in branch 'main': bpo-46841: Fix error message hacks in `GET_AWAITABLE` (GH-31664) https://github.com/python/cpython/commit/586b24d3be1aec5d2568b070a249b4d75e608782 --

[issue46781] Tracing: c_return doesn't report the result

2022-03-04 Thread Mark Shannon
Mark Shannon added the comment: This is an API change. I agree that the API is not what it should be, but we can't change it without breaking an unknown amount of 3rd party code that uses it. -- nosy: +Mark.Shannon ___ Python tracker

[issue46910] Expect IndentationError, get SyntaxError: 'break' outside loop

2022-03-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately that's not how the parser works. I insist, for the compiler to raise the propper error the parser needs to succeed first. That would require us to modify the input string in arbitrary ways (many times we don't know exactly what went

[issue46920] Remove code made dead long ago with #if 0

2022-03-04 Thread Oleg Iarygin
Oleg Iarygin added the comment: Also forgot to add that git grep "#if 1" gives the following: - added on 20 Nov 2014 by d600951: cpython/Python/pylifecycle.c:2427. "/* Disable this if you have trouble debugging bootstrap stuff */" - after seven years, no trouble was found so this

[issue46920] Remove code made dead long ago with #if 0

2022-03-04 Thread Oleg Iarygin
Change by Oleg Iarygin : -- keywords: +patch pull_requests: +29800 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31681 ___ Python tracker ___

[issue46920] Remove code made dead long ago with #if 0

2022-03-04 Thread Oleg Iarygin
New submission from Oleg Iarygin : `git grep "#if 0"` gives the following occurences of dead code (analyzed with `git blame`, removed by a linked pull request): - added on 27 Apr 2020 by 2b74c83: Parser/pegen.h:9, Parser/pegen.h:15. Since these constants aren't mentioned anywhere else, I

[issue19217] Calling assertEquals for moderately long list takes too long

2022-03-04 Thread Alex Waygood
Change by Alex Waygood : -- keywords: -easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46910] Expect IndentationError, get SyntaxError: 'break' outside loop

2022-03-04 Thread Jonathan Fine
Jonathan Fine added the comment: Many thanks Pablo for the clear explanation. I'd prefer that the issue remain open, as there's an important user experience issue here. I suspect there are other similar examples of how the compiler error messages could be improved. Here's a change that

[issue46916] There is a problem with escape characters in the path passed in by pathlib.Path.mkdir()

2022-03-04 Thread Eryk Sun
Eryk Sun added the comment: > I thought pathlib would solve this problem completely now, > without having to replace the slashes. pathlib has nothing to do with how the Python language compiles string literals. A string *literal* is Python source code that gets compiled and instantiated as

[issue46911] Early tracing has lineno=None for modules

2022-03-04 Thread Mark Shannon
Mark Shannon added the comment: This is a bit of a tricky one. The problem is that the line number for an instruction is used for two purposes. 1. To calculate the line number in frame.f_lineno for tracebacks and events 2. By dis to determine which lines are present and where they start. If

[issue46903] Crash when setting attribute with string subclass as the name (--with-pydebug)

2022-03-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset 03c2a36b2bd2d4469160d1607619ee144175d753 by Mark Shannon in branch 'main': bpo-46903: Handle str-subclasses in virtual instance dictionaries. (GH-31658) https://github.com/python/cpython/commit/03c2a36b2bd2d4469160d1607619ee144175d753

[issue46916] There is a problem with escape characters in the path passed in by pathlib.Path.mkdir()

2022-03-04 Thread Vincent FUNG
Vincent FUNG added the comment: Oh. Got it. I thought pathlib would solve this problem completely now, without having to replace the slashes. Thank you for your patient answer. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue31370] Remove support for threads-less builds

2022-03-04 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-03-04 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +Jelle Zijlstra, gvanrossum, kj, sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46918] The vulnerability is included in /lib/python3.9/ensurepip after python 3.9.2 is installed.

2022-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://nvd.nist.gov/vuln/detail/CVE-2020-14422 Lib/ipaddress.py in Python through 3.8.3 improperly computes hash values in the IPv4Interface and IPv6Interface classes, which might allow a remote attacker to cause a denial of service if an

[issue46907] Update Windows and MacOS installer to SQLite 3.38.0.

2022-03-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2022-03-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-04 Thread STINNER Victor
STINNER Victor added the comment: > I don't agree with GH-31673. Did you try defining NO_MISALIGNED_ACCESSES > instead? Did you read the commit message? The change is not about skipping the test, but fixing the CI. Previously, test_hashlib was not run at all on the UBSan buildbot, now most

[issue40185] Refactor typing.NamedTuple

2022-03-04 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +29799 pull_request: https://github.com/python/cpython/pull/31679 ___ Python tracker ___

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

2022-03-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 7.0 -> 8.0 pull_requests: +29798 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31679 ___ Python tracker

[issue46919] After Python 3.9.2 is installed, the CVE-2019-12900 and CVE-2016-3189 vulnerabilities exist in Python39/DLLs/_bz2.pyd.

2022-03-04 Thread zjmxq
Change by zjmxq : -- components: Library (Lib) nosy: zjmxq priority: normal severity: normal status: open title: After Python 3.9.2 is installed, the CVE-2019-12900 and CVE-2016-3189 vulnerabilities exist in Python39/DLLs/_bz2.pyd. type: security versions: Python 3.9

[issue46918] The vulnerability is included in /lib/python3.9/ensurepip after python 3.9.2 is installed.

2022-03-04 Thread zjmxq
New submission from zjmxq : Vulnerability CVE-2021-29921,CVE-2020-14422, CVE-2021-3572, CVE-2021-33503 Vulnerability Found in python 3.9.2 /lib/python3.9/ensurepip -- components: Library (Lib) messages: 414511 nosy: zjmxq priority: normal severity: normal status: open title: The

[issue45413] Add install scheme for virtual environments

2022-03-04 Thread Petr Viktorin
Petr Viktorin added the comment: Steve, could you take a look at the PR discussion and chime in about how this should be done? -- ___ Python tracker ___

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2022-03-04 Thread Kumar Aditya
Kumar Aditya added the comment: Since bpo-issue44011 is fixed, this can be closed now @asvetlov. -- nosy: +kumaraditya303 ___ Python tracker ___

[issue17505] [doc] email.header.Header.__unicode__ does not decode header

2022-03-04 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: > Any suggestions on what needs to be done for current revisions? Hi! I'm the person who submitted this issue back in 2013. Let's take a look at how things are in Python 3.10: Python 3.10.2 (main, Jan 13 2022, 19:06:22) [GCC 10.3.0] on linux Type "help",