[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I would like to help to write the fix for this issue. -- ___ Python tracker ___ ___ Python-bugs-

[issue17659] no way to determine First weekday (based on locale)

2021-04-19 Thread Cédric Krier
Cédric Krier added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue42854] OpenSSL 1.1.1: use SSL_write_ex() and SSL_read_ex()

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: Ethan, what's your platform and OpenSSL version? -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___

[issue43817] Add inspect.get_annotations()

2021-04-19 Thread Larry Hastings
Change by Larry Hastings : -- title: Add typing.get_annotations() -> Add inspect.get_annotations() ___ Python tracker ___ ___ Python

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-04-19 Thread Josh Snyder
Change by Josh Snyder : -- keywords: +patch pull_requests: +24203 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25478 ___ Python tracker ___

[issue38659] enum classes cause slow startup time

2021-04-19 Thread Ethan Furman
Ethan Furman added the comment: New changeset 503cdc7c124cebbd777008bdf7bd9aa666b25f07 by Ethan Furman in branch 'master': Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476) https://github.com/python/cpython/commit/503cdc7c124cebbd777008bdf7bd9aa666b25f07 --

[issue38659] enum classes cause slow startup time

2021-04-19 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +24202 pull_request: https://github.com/python/cpython/pull/25476 ___ Python tracker ___

[issue38659] enum classes cause slow startup time

2021-04-19 Thread Ethan Furman
Ethan Furman added the comment: New changeset dbac8f40e81eb0a29dc833e6409a1abf47467da6 by Ethan Furman in branch 'master': bpo-38659: [Enum] add _simple_enum decorator (GH-25285) https://github.com/python/cpython/commit/dbac8f40e81eb0a29dc833e6409a1abf47467da6 -- __

[issue42854] OpenSSL 1.1.1: use SSL_write_ex() and SSL_read_ex()

2021-04-19 Thread Ethan Furman
Ethan Furman added the comment: I'm getting this error: test test_ssl failed -- Traceback (most recent call last): File "/source/python/cpython/Lib/test/test_ssl.py", line 1061, in test_read_write_zero self.assertEqual(s.send(b""), 0) File "/source/python/cpython/Lib/ssl.py", line 119

[issue39298] add BLAKE3 to hashlib

2021-04-19 Thread Jack O'Connor
Jack O'Connor added the comment: Hey Christian, yes these are new bindings, and also incomplete. See comments in https://github.com/oconnor663/cpython/commit/dc6f6163ad9754c9ad53e9e3f3613ca3891a77ba, but in short only x86-64 Unix is in working order. If 3.10 doesn't seem realistic, I'm happy

[issue43834] Use context manager in StringIO example

2021-04-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: I agree that closing or using a context manager with StringIO (or BytesIO) is not something one normally has to do, so it doesn't need to be in the example. -- resolution: -> rejected status: open -> closed ___

[issue43834] Use context manager in StringIO example

2021-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Except for that, the PR looks fine. Leaving this open to see what Benjamin thinks. -- resolution: rejected -> status: closed -> open ___ Python tracker ___

[issue43834] Use context manager in StringIO example

2021-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Let's leave the example as-is. The principal use case for these objects is to pass them into other APIs that require file-like objects. Those can't always be put in a context manager. For this example, we mainly want to communicate that getvalue() mus

[issue43891] co_annotations branch caused a crash in stackeffect() in compile.c

2021-04-19 Thread Larry Hastings
Larry Hastings added the comment: (Sorry, the name of the function is stackdepth(), not stackeffect().) -- ___ Python tracker ___ _

[issue43891] co_annotations branch caused a crash in stackeffect() in compile.c

2021-04-19 Thread Larry Hastings
New submission from Larry Hastings : I'm working on a branch to implement PEP 649: https://github.com/larryhastings/co_annotations/ Inada Naoki discovered a crash in that branch, discussed here, including steps to reproduce: https://github.com/larryhastings/co_annotations/issues/10 valgrind

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-19 Thread Brett Cannon
Brett Cannon added the comment: It might be time to just kill the coverage report since people are obviously not looking at the results. -- ___ Python tracker ___ ___

[issue25460] Misc/.gdbinit uses preprocessor macro

2021-04-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7a041162468b83f6cad667b78ed5c786286aed2b by Pablo Galindo in branch 'master': bpo-25460: Surround suggestions by quotes (GH-25473) https://github.com/python/cpython/commit/7a041162468b83f6cad667b78ed5c786286aed2b -- ___

[issue31213] __context__ reset to None in nested exception

2021-04-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-19 Thread Steve Dower
Steve Dower added the comment: > In that case, would you want to deprecate > sys.getwindowsversion().platform_version? Yeah, but I'm not so concerned about raising a warning on use. Just in the docs will be fine. We should also add a mention that it is extracting the value from efficient bu

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-19 Thread Eryk Sun
Eryk Sun added the comment: > If we're going to launch cmd.exe, I'd prefer to only do that in the > platform module and not the sys function. Nothing in sys should > start a subprocess (if we can at all avoid it). In that case, would you want to deprecate sys.getwindowsversion().platform_ve

[issue43878] ./configure fails on Apple Silicon with coreutils uname

2021-04-19 Thread Keith Smiley
Keith Smiley added the comment: Yep for sure, this is the first time I've hit a difference with uname specifically -- title: ./configure fails on Apple Silicon -> ./configure fails on Apple Silicon with coreutils uname ___ Python tracker

[issue43878] ./configure fails on Apple Silicon

2021-04-19 Thread Ned Deily
Ned Deily added the comment: Thanks for the additional info and the PR. Yes, it probably does make sense to update them. But it also makes sense to avoid getting into problems building (Python and likely some other projects) with replacements for Apple-supplied utilities :) I note that MacP

[issue38530] Offer suggestions on AttributeError and NameError

2021-04-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24201 pull_request: https://github.com/python/cpython/pull/25473 ___ Python tracker ___ ___

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-04-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24200 pull_request: https://github.com/python/cpython/pull/25475 ___ Python tracker ___ ___

[issue43878] ./configure fails on Apple Silicon

2021-04-19 Thread Keith Smiley
Keith Smiley added the comment: Thanks for checking, I was able to debug further and it turns out the actual issue is if you use `uname` from `coreutils`, you get different results: ``` % /opt/homebrew/opt/coreutils/libexec/gnubin/uname -p arm64 % /usr/bin/uname -p arm ``` I have this in my

[issue43878] ./configure fails on Apple Silicon

2021-04-19 Thread Ned Deily
Ned Deily added the comment: I'm unable to reproduce the failure you see using the current top of the master branch (or the 3.9 branch) when running ./configure on an M1 Mac with macOS 11.2.3 and Xcode 12.4. The results I see are: checking build system type... arm-apple-darwin20.3.0 checking

[issue43882] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-04-19 Thread Mike Lissner
Change by Mike Lissner : -- nosy: +Mike.Lissner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue43883] Making urlparse WHATWG conformant

2021-04-19 Thread Mike Lissner
Change by Mike Lissner : -- nosy: +Mike.Lissner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue32951] Prohibit direct instantiation of SSLSocket and SSLObject

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

[issue34391] test_ftplib is failing with TLS 1.3

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: I don't think there is anything left to do. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43811] Run GHA CI with multiple OpenSSL versions

2021-04-19 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: -Run GHA CI with multiple OpenSSL versions resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue42166] corrupted size vs. prev_size

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: Python 3.7 no longer receives regular updates. Please feel free to reopen the bug if you can reproduce the issue with a more recent Python and OpenSSL version. -- resolution: -> out of date stage: -> resolved status: open -> closed _

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-19 Thread Steve Dower
Steve Dower added the comment: Python is a volunteer built project, so someone will need to volunteer to write the fix. Until there is a volunteer, there is no plan. (One of the core devs might volunteer, but there's no guarantee of that.) If we're going to launch cmd.exe, I'd prefer to only

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: Josh, could you please rebase your branch and create a pull request? The PR process will verify that you have submitted a CLA. -- ___ Python tracker _

[issue36011] ssl - tls verify on Windows fails

2021-04-19 Thread Tianon
Change by Tianon : -- nosy: +tianon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue41556] hostname verification fails if hostname starts with literal IPv4

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: There is no progress on the OpenSSL bug yet. -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ _

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: Python 3.10 contains various improvements that make it easier to compile and link Python with a custom OpenSSL installation. You can find more information in ticket bpo-43466. -- resolution: -> fixed stage: -> resolved status: open -> closed supe

[issue25460] Misc/.gdbinit uses preprocessor macro

2021-04-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 2.0 -> 3.0 pull_requests: +24199 pull_request: https://github.com/python/cpython/pull/25473 ___ Python tracker ___

[issue37666] urllib.requests.urlopen: deprecate cafile=None, capath=None, cadefault=False

2021-04-19 Thread Christian Heimes
Change by Christian Heimes : -- assignee: christian.heimes -> components: -SSL title: urllib.requests.urlopen doesn't support cadata= -> urllib.requests.urlopen: deprecate cafile=None, capath=None, cadefault=False versions: +Python 3.10 -Python 3.8, Python 3.9 __

[issue37120] Provide knobs to disable session ticket generation on TLS 1.3

2021-04-19 Thread Christian Heimes
Change by Christian Heimes : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue35422] misleading error message from ssl.get_server_certificate() when bad port

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: There is no easy fix for that. The TLS handskae is performed by OpenSSL internally. You could open a feature request with OpenSSL and ask them to implement better error detection and reporting. -- resolution: -> wont fix stage: -> resolved status

[issue40432] Pegen regenerate project for Windows not working

2021-04-19 Thread Steve Dower
Steve Dower added the comment: That'll be a change to PCbuild/find_python.bat that needs to be backported then. It probably defaults to 3.7 in all branches right now, but since 3.9 is out we can update them all to that (it downloads on demand if necessary). -- __

[issue43866] Installation files of the Python

2021-04-19 Thread Steve Dower
Steve Dower added the comment: Yeah, it's a known limitation of the installer technology we're using. issue25166 is the same issue, so we'll track it there. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Windows AllUsers installation places uni

[issue36137] SSL verification fails for some sites inside windows docker container

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: I'm closing this issue as duplicate of #36137. There is no need to keep two issues open for the same problem. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> SSL verification fails for some sites inside window

[issue34670] Add set_post_handshake_auth for TLS 1.3

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: I don't think is anything left to do here. PHA has been supported for a while and I haven't seen any problems. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <

[issue32813] SSL shared_ciphers implementation wrong - returns configured but not shared ciphers

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: 3.10 now supports only OpenSSL versions that return the correct value. Older Python versions may return wrong value when they are linked with OpenSSL 1.1.0 or 1.0.2. -- resolution: -> third party stage: -> resolved status: open -> closed ___

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-19 Thread Ned Deily
Change by Ned Deily : -- nosy: +brett.cannon, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok. So are you planning to implement this fix? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue43885] ResourceWarning: unclosed test_pha_required_nocert

2021-04-19 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-37322 that I reported at 2019-06-17. -- ___ Python tracker ___ ___ Python-bugs-l

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-19 Thread Eryk Sun
Eryk Sun added the comment: > But isn't calling CMD's VER command risky? A process can overwrite its > PEB OSMajorVersion, OSMinorVersion, and OSBuildNumber. As long as VER is executed without quotes, the shell will not search for an external command. CMD is not going to intentionally overw

[issue43880] 3.10 SSL module deprecations

2021-04-19 Thread Christian Heimes
Christian Heimes added the comment: I'm leaving the issue open as a reminder to improve whatsnew documentation. -- priority: high -> normal ___ Python tracker ___

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2021-04-19 Thread Steve Dower
Steve Dower added the comment: Even better, one that doesn't crash but safely returns a value that can be checked. (IIRC, we have a test that does this to ensure that structs smaller than 9 bytes are passed on the stack.) Half C/half Python is fine - the C bits would go into _ctypes_test.c

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-19 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: SQLite 3.35.5 is out today. Let's wait until next weekend and see if fossil and forum is quiet. If they are, I'll open PRs for the installers. https://www.sqlite.org/releaselog/3_35_5.html -- title: Upgrade to SQLite 3.35.4 in macOS and Windo

[issue43890] Deadlock when mixing event loops and subprocesses

2021-04-19 Thread Thomas Buhrmann
New submission from Thomas Buhrmann : When mixing code that spawns subprocesses with code that creates event loops, Python appears to deadlock. In the attached example, when WORKERS = 16 and ASYNC_WORKERS = 8, Python will sometimes (50% of the time?) deadlock, never exiting, with no exception

[issue43710] Access violations in C extension modules on Python 3.9.3

2021-04-19 Thread Sunday
Change by Sunday : Added file: https://bugs.python.org/file49966/logs.gz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43837] Operator precedence documentation could be more clear

2021-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: * Changed the table order to match norms. * Not adding and for variables because that is outside the norm (likely because variables aren't operators). * Keeping the existing terminology which is standard and historically hasn't been a problem. Also the

[issue43837] Operator precedence documentation could be more clear

2021-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 072ec69af592611f36349f5048569ab7e72b8b61 by Miss Islington (bot) in branch '3.9': bpo-43837: Reverse order of precedence table to show tightly binding operators first (GH-25469) (GH-25472) https://github.com/python/cpython/commit/072ec69af59

[issue43889] Pickle performance regression in 3.10

2021-04-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43889] Pickle performance regression in 3.10

2021-04-19 Thread Ken Jin
Ken Jin added the comment: > It definitely shouldn't be related to any of these, all are unrelated code > paths. Yeah I thought so too :(. After looking at the benchmark code in pyperformance, I can't find anything related in the commits that would cause such a big difference. Hmmm...

[issue43889] Pickle performance regression in 3.10

2021-04-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It definitely shouldn't be related to any of these, all are unrelated code paths. -- ___ Python tracker ___ _

[issue41370] PEP 585 and ForwardRef

2021-04-19 Thread wyz23x2
Change by wyz23x2 : -- nosy: -wyz23x2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue43837] Operator precedence documentation could be more clear

2021-04-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 10.0 -> 11.0 pull_requests: +24198 pull_request: https://github.com/python/cpython/pull/25472 ___ Python tracker ___

[issue43837] Operator precedence documentation could be more clear

2021-04-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 68ba0c67cac10c2545ea3b62d8b161e5b3594edd by Ammar Askar in branch 'master': bpo-43837: Reverse order of precedence table to show tightly binding operators first (GH-25469) https://github.com/python/cpython/commit/68ba0c67cac10c2545ea3b62d8b1

[issue43889] Pickle performance regression in 3.10

2021-04-19 Thread Ken Jin
New submission from Ken Jin : Hi everyone, I noticed on speed.python.org that the pickle benchmarks are noticeably slower: Overall, pickle slowed down by >10% https://speed.python.org/timeline/?exe=12&base=&ben=pickle&env=1&revs=200&equid=off&quarts=on&extr=on Pickling list and dict is also s

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2021-04-19 Thread Ronal Abraham
Ronal Abraham added the comment: I see this on MacOS and Linux, but I suspect any Unix-like system would have the same behavior. -- ___ Python tracker ___ ___

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2021-04-19 Thread Romuald Brunet
Romuald Brunet added the comment: I meant: this issue is fixed in 3.10 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2021-04-19 Thread Romuald Brunet
Romuald Brunet added the comment: Ran into a similar issue today This issue (and mine is fixed) in python 3.10. Most probaly related to #24565 fix -- nosy: +Romuald versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue43887] it seems that sorted built-in always return floats before int if they appear to be equal

2021-04-19 Thread John Mish
John Mish added the comment: Thanks, I should go deeper with it before filing. Wish You have great day Steven. -- ___ Python tracker ___ _

[issue43887] it seems that sorted built-in always return floats before int if they appear to be equal

2021-04-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi John, you said: > it seems that sorted built-in always return floats before int if they appear > to be equal But that's not correct: >>> sorted([5.0, 5]) [5.0, 5] >>> sorted([5, 5.0]) [5, 5.0] Python's sort is *stable*, which means that the order of t

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-19 Thread Sviatoslav Sydorenko
Change by Sviatoslav Sydorenko : -- keywords: +patch pull_requests: +24196 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25471 ___ Python tracker ___

[issue40849] Expose X509_V_FLAG_PARTIAL_CHAIN ssl flag

2021-04-19 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue40849] Expose X509_V_FLAG_PARTIAL_CHAIN ssl flag

2021-04-19 Thread miss-islington
miss-islington added the comment: New changeset 64d975202f7a91cb8c61a050fafb4e934fcbaa4e by l0x in branch 'master': bpo-40849: Expose X509_V_FLAG_PARTIAL_CHAIN ssl flag (GH-20463) https://github.com/python/cpython/commit/64d975202f7a91cb8c61a050fafb4e934fcbaa4e -- nosy: +miss-isling

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-19 Thread Sviatoslav Sydorenko
Change by Sviatoslav Sydorenko : -- type: crash -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-19 Thread Sviatoslav Sydorenko
New submission from Sviatoslav Sydorenko : I noticed that https://github.com/python/cpython/runs/2378199636 (a coverage job on the last commit on master at the time of writing) takes suspiciously long to complete. I did some investigation and noticed that this job on the 3.9 branch succeeds (

[issue43887] it seems that sorted built-in always return floats before int if they appear to be equal

2021-04-19 Thread John Mish
New submission from John Mish : A1 >>> sorted([12.001, 2, 1.999, 2.1, 4, 12]) [1.999, 2, 2.1, 4, 12, 12.002] A2 >>> sorted([12.0001, 2, 1.999, 2.1, 4, 12]) [1.999, 2, 2.1, 4, 12.0, 12] B1 >>> sorted([11.999, 2, 1.999, 2.1, 4, 12]) [1.999, 2, 2.1, 4

[issue43886] Extending/embedding Python documentation outdated/incomplete

2021-04-19 Thread Federico Pellegrin
Federico Pellegrin added the comment: Just a small addition: Specifically in the documentation it talks about embedding: " It is not necessarily trivial to find the right flags to pass to your compiler (and linker) in order to embed the Python interpreter into your application, particularly

[issue43886] Extending/embedding Python documentation outdated/incomplete

2021-04-19 Thread Federico Pellegrin
New submission from Federico Pellegrin : Hello, We had lately some issues with various possible variants of compilation (static vs dynamic) with reference to both embedding and extending Python. There are a bunch of tickets on the topic (ie. #21536 or #34309) but I guess one important point i

[issue43803] ctypes string_at/wstring_at - bad argument name used in docs and in docstring

2021-04-19 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailin

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2021-04-19 Thread Dennis Sweeney
Dennis Sweeney added the comment: Running kill_subprocess.py on Windows 10, I get these results: Python 3.7.2 (tags/v3.7.2:9a3ffc0492) - raises NotImplementedError in base_events.py, _make_subprocess_transport Python 3.8.2 (tags/v3.8.2:7b3ab59) - Success Python 3.9.0 (tags/v3.9.0:9cf67

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: But isn't calling CMD's VER command risky? A process can overwrite its PEB OSMajorVersion, OSMinorVersion, and OSBuildNumber. If the cmd has been set to compatibility mode somehow then the same problem will occur since it will then overwrite its PEB OSMajor

[issue43885] ResourceWarning: unclosed test_pha_required_nocert

2021-04-19 Thread Christian Heimes
New submission from Christian Heimes : bpo-35926 and fb7e7505ed1337bf40fa7b8b68317d1e86675a86 introduced code that is triggered resource errors and unhandled exceptions. It has been bothering me for a while but I could never pin point the issue. Victor's and Hai's commits e80697d687b6 and 73e