[issue44015] dataclasses: it should be an error to specify KW_ONLY twice

2021-05-03 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +24525 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25841 ___ Python tracker ___ __

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The PR made sslproto a hard dependency that even import asyncio fails on non-ssl builds and thus anything that indirectly import asyncio also fails. It seems some of the test modules can be skipped. Some parts of the asyncio codebase already has ch

[issue44015] dataclasses: it should be an error to specify KW_ONLY twice

2021-05-03 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 99ad742ea913e421d012c1a623029eac31bdfe85 by Eric V. Smith in branch 'master': bpo-44015: dataclasses should allow KW_ONLY to be specified only once per class (GH-25841) https://github.com/python/cpython/commit/99ad742ea913e421d012c1a623029eac31b

[issue44015] dataclasses: it should be an error to specify KW_ONLY twice

2021-05-03 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-05-03 Thread Miguel Brito
Miguel Brito added the comment: Thanks terry.reedy, actually I read it in the mailing list, someones comment not a guideline. Do you mind having a look at the PR? -- ___ Python tracker

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Christian Heimes
Christian Heimes added the comment: PR GH-25840 fixes most issues. Gentoo with X buildbot https://buildbot.python.org/all/#builders/465/builds/23 has one failing test. == ERROR: test_create_server_ssl_over_ssl (test.test_asyn

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Christian Heimes
Christian Heimes added the comment: New changeset 37ebdf0a866457ce825d0ff6e498a10938895760 by Christian Heimes in branch 'master': bpo-44011: Fix asyncio tests without ssl module (GH-25840) https://github.com/python/cpython/commit/37ebdf0a866457ce825d0ff6e498a10938895760 -- ___

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Christian Heimes
Christian Heimes added the comment: I have merged my PR to unblock buildbots. Karthikeyan has made suggestions how to improve the tests even further. CI also had some issues with OpenSSL 3.0.0-alpha15. Please run the tests with new OpenSSL version, too. "make multissltest" automates download

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-05-03 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset ad106c68eb00f5e4af2f937107baff6141948cee by Batuhan Taskaya in branch 'master': bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583) https://github.com/python/cpython/commit/ad106c68eb00f5e4af2f937107baff6141948cee

[issue44016] Enum related deprecation warnings in test_httpservers and test_faulthandler

2021-05-03 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : These warnings seem to be related to changes in issue43945 ./python -Wall -m test test_httpservers test_faulthandler 0:00:00 load avg: 4.83 Run tests sequentially 0:00:00 load avg: 4.83 [1/2] test_httpservers /root/cpython/Lib/test/test_httpservers

[issue39950] Add pathlib.Path.hardlink_to()

2021-05-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The changes have introduced deprecation warnings in tests. It seems https://github.com/python/cpython/blob/ad106c68eb00f5e4af2f937107baff6141948cee/Lib/test/test_pathlib.py#L1937 is not covered. ./python -Wall -m test test_pathlib

[issue44017] Deprecation warning in tests over no current event loop

2021-05-03 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Related to warnings from issue39529 ./python -Wall -m test test_contextlib_async test_unittest 0:00:00 load avg: 0.91 Run tests sequentially 0:00:00 load avg: 0.91 [1/2] test_contextlib_async Task was destroyed but it is pending! task: ()>> Task wa

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +24526 pull_request: https://github.com/python/cpython/pull/25842 ___ Python tracker ___ __

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

2021-05-03 Thread Łukasz Langa
Łukasz Langa added the comment: Good catch, Greg. Since it's not merged already, this change will miss 3.8.10 but as a security fix will be included in 3.8.11 later in the year. The partial fix already landed in 3.9 will be released in 3.9.5 later today unless it's amended or reverted in a fe

[issue44018] Bug in random.seed

2021-05-03 Thread Eugene Rossokha
New submission from Eugene Rossokha : https://github.com/python/cpython/blob/master/Lib/random.py#L157 If bytearray is passed as a seed, the function will change it. It either has to be documented, or the implementation should change. -- components: Library (Lib) messages: 392782 nosy:

[issue44018] Bug in random.seed

2021-05-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue44016] Enum related deprecation warnings in test_httpservers and test_faulthandler

2021-05-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Couldn't reproduce warnings for test_faulthandler but found a patch for test_httpservers. I'm opening a PR for it. (Patch adapted from https://github.com/python/cpython/pull/25769) -- nosy: +shreyanavigyan ___ Py

[issue44016] Enum related deprecation warnings in test_httpservers and test_faulthandler

2021-05-03 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- keywords: +patch pull_requests: +24527 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25844 ___ Python tracker ___

[issue44018] Bug in random.seed

2021-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't see a bug here. As documented, "a str, bytes, or bytearray object gets converted to an int and all of its bits are used." The various input types are converted to an integer and it doesn't really matter how it is done as long as it is consistent

[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-03 Thread Marwan Essam
Marwan Essam added the comment: Hello Steve I did a Windows format and now I can successfully install Python, Thanks for helping -- ___ Python tracker ___ __

[issue44018] Bug in random.seed

2021-05-03 Thread Eugene Rossokha
Eugene Rossokha added the comment: I find the following behaviour very confusing: >>> import random >>> a = bytearray("1234", "utf-8") >>> b = bytearray("1234", "utf-8") >>> a == b True >>> random.seed(a) >>> a == b False >>> a bytearray(b'1234\xd4\x04U\x9f`.\xabo\xd6\x02\xacv\x80\xda\xcb\xfa\

[issue43952] Multiprocessing UNIX socket connection: client freeze if authkey is an empty byte string

2021-05-03 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch pull_requests: +24528 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25845 ___ Python tracker ___ ___

[issue43347] IDLE crashes in macOS Apple chip, maybe completions

2021-05-03 Thread Tal Einat
Tal Einat added the comment: Thanks for the info, Raymond. Anyone with an M-1 Mac able to look into this further? -- ___ Python tracker ___ __

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +24529 pull_request: https://github.com/python/cpython/pull/25846 ___ Python tracker ___ __

[issue44010] IDLE: highlight soft keywords

2021-05-03 Thread Tal Einat
Tal Einat added the comment: Terry, Elisha, does one of you intend to work on this? If not, I'd be willing to. -- ___ Python tracker ___ _

[issue44018] Bug in random.seed

2021-05-03 Thread Miguel Brito
Miguel Brito added the comment: The problem is that random seed will do ``` if isinstance(a, str): a = a.encode() a += _sha512(a).digest() a = int.from_bytes(a, 'big') ``` and that will modify the bytearray in place. >>> a = bytearray("1234

[issue43952] Multiprocessing UNIX socket connection: client freeze if authkey is an empty byte string

2021-05-03 Thread Miguel Brito
Miguel Brito added the comment: I had a look at the HMAC RFC and apparently empty bytes sequence can be used as secret key. "The definition of HMAC requires a cryptographic hash function, which we denote by H, and a secret key K. ... The authentication key K can be of any length up to B, t

[issue44010] IDLE: highlight soft keywords

2021-05-03 Thread E. Paine
E. Paine added the comment: I don't mind, would you like to Tal? (I probably won't be able to dedicate any serious time to it until mid-June). One thing I've been thinking is whether it's worth us highlighting regardless of context. For example, you can assign a variable to a builtin name (n

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-05-03 Thread Sebastian Rittau
Change by Sebastian Rittau : -- nosy: +srittau ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44010] IDLE: highlight soft keywords

2021-05-03 Thread Tal Einat
Tal Einat added the comment: I think it is rather crucial to have this with the 3.10 release. I'll try to get this working ASAP. I agree that a simple "good enough" solution could be a good start, but "_" will likely need special handling. -- ___

[issue44010] IDLE: highlight soft keywords

2021-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: My plan for the next day or two is to submit followup issue for Shell and formally code what I wrote. The only way to handle soft keywords correctly is with a custom re. I don't expect them to become common. They are different from builtins because they o

[issue44010] IDLE: highlight soft keywords

2021-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with getting this in soon. A related request is to to syntax highlight field expressions in f strings. I don't think there is an existing issue. Apparently, at least some alternatives to IDLE do this. I am not sure I would really want it, but we n

[issue41222] Undocumented behaviour change of POpen.stdout.readine with bufsize=0 or =1

2021-05-03 Thread Yann Dirson
Yann Dirson added the comment: Relevant commits include this one from v3.1.4: commit 877766dee8e60c7971ed0cabba89fbe981c2ab1b Author: Antoine Pitrou Date: Sat Mar 19 17:00:37 2011 +0100 Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates unbuffered pipes, s

[issue44010] IDLE: highlight soft keywords

2021-05-03 Thread Tal Einat
Tal Einat added the comment: > A related request is to to syntax highlight field expressions in f strings. Related, but separate, and IMO not quite as urgent. I can commit to working on this issue (soft keywords), but I'll have to see where things stand once this is finished before moving on

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-03 Thread Jakub Kulik
Change by Jakub Kulik : -- pull_requests: +24530 pull_request: https://github.com/python/cpython/pull/25847 ___ Python tracker ___ _

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-03 Thread Sujal Patel
Change by Sujal Patel : -- components: +Tests -Unicode versions: +Python 3.11 -Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ __

[issue43006] Changed behaviour of inspect.signature() in Python 3.10

2021-05-03 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: I think that with PEP-563 reverted, this issue has been fixed. If we have a similar problem from e.g. PEP-649, I'll open another ticket then! -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Since commit https://github.com/python/cpython/commit/5fb06edbbb769561e245d0fe13002bab50e2ae60 was merged there are multiple timeouts in several buildbots. Unfortunately if this is not fixed by the time I need to do the beta release I may need to rev

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Christian Heimes
Christian Heimes added the comment: When was https://buildbot.python.org/all/#/builders/464/builds/138 start? The build properties tab doesn't have a start timestamp. Andrew, increase timeout doesn't seem to help. It's looks like the test suite is leaking threads on error. -- _

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24531 pull_request: https://github.com/python/cpython/pull/25848 ___ Python tracker ___ ___

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have created https://github.com/python/cpython/pull/25848 for the revert, in case this is not fixed in the next hours or so. Given the nature of PR 17975, this should have tested with the buildbots as the release team asked in: https://mail.python.

[issue44018] Bug in random.seed

2021-05-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: One solution to these would be making a copy of the parameter using copy.deepcopy and then performing operations on that copy. (The downside of this solution is that it will change the behavior.) -- nosy: +shreyanavigyan ___

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Specifically this part of both messages: >> If your change involves some platform-specific behaviour or has a >> non-trivial amount of C code, make sure you run the buildbots >> in your Pull Request by using the "test-with-buildbots" label ( >> https://

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Batuhan, can this issue be closed? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-05-03 Thread Steve Dower
Steve Dower added the comment: New changeset bb2f3ff7a8f0c3565ccc1946dba7e09a3f7dc209 by Steve Dower in branch '3.9': bpo-42800: Add audit events for f_code and tb_frame (GH-24182) https://github.com/python/cpython/commit/bb2f3ff7a8f0c3565ccc1946dba7e09a3f7dc209 --

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-05-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24532 pull_request: https://github.com/python/cpython/pull/25849 ___ Python tracker _

[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +24533 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25850 ___ Python tracker ___

[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread Christian Heimes
Christian Heimes added the comment: I'm still unsure why tests are sometimes failing. Test fail rarely on macOS and Windows. When tests are failing it's usually a bunch of tests that fail with "connection reset by peer". I suspect that the listener backlog and timeout of the server socket is

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-05-03 Thread miss-islington
miss-islington added the comment: New changeset 8ab272f0f3dd7da44f8e21d2a5a39c2ab39490d6 by Miss Islington (bot) in branch '3.8': bpo-42800: Add audit events for f_code and tb_frame (GH-24182) https://github.com/python/cpython/commit/8ab272f0f3dd7da44f8e21d2a5a39c2ab39490d6 --

[issue44010] IDLE: highlight soft keywords

2021-05-03 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +24534 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/25851 ___ Python tracker ___

[issue44010] IDLE: highlight soft keywords

2021-05-03 Thread Tal Einat
Tal Einat added the comment: I've created a PR (GH-25851) with a rather quick, working implementation. This includes some tests but I haven't thoroughly tested it yet. If anyone can take a look and give feedback on the approach, that would be great. -- _

[issue42083] PyStructSequence_NewType broken in 3.8

2021-05-03 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch nosy: +kj nosy_count: 3.0 -> 4.0 pull_requests: +24536 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25852 ___ Python tracker

[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2021-05-03 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 4.0 -> 5.0 pull_requests: +24535 pull_request: https://github.com/python/cpython/pull/25852 ___ Python tracker ___

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

2021-05-03 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +24537 pull_request: https://github.com/python/cpython/pull/25853 ___ Python tracker ___ _

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

2021-05-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: Based on Greg's review comment, I have pushed the fix for 3.9, and 3.8 - [3.9] https://github.com/python/cpython/pull/25853 - [3.8] https://github.com/python/cpython/pull/25726 There is no need to hold off releases for these alone. If we get it merged befor

[issue44019] operator.call/operator.__call__

2021-05-03 Thread Antony Lee
New submission from Antony Lee : Adding a call/__call__ function to the operator module (where `operator.call(*args, **kwargs)(func) == func(*args, **kwargs)`, similarly to operator.methodcaller) seems consistent with the design with the rest of the operator module. An actual use case I had

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-05-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24538 pull_request: https://github.com/python/cpython/pull/25854 ___ Python tracker ___ ___

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-05-03 Thread Jakub Kulik
Change by Jakub Kulik : -- components: +Unicode -Tests versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.11 ___ Python tracker ___ __

[issue43990] In documentation Section 6.17, Operator precedence, footnotes 5 & 6 are reversed

2021-05-03 Thread Webb Scales
Webb Scales added the comment: Thanks Raymond and Zackery -- that response was nothing short of amazing! -- ___ Python tracker ___

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c2931d31f8ba7cf10044de276018c713ffc73592 by Pablo Galindo in branch 'master': bpo-43916: Move the _PyStructSequence_InitType function to the internal API (GH-25854) https://github.com/python/cpython/commit/c2931d31f8ba7cf10044de276018c71

[issue43754] Eliminate bindings for partial pattern matches

2021-05-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24539 pull_request: https://github.com/python/cpython/pull/25855 ___ Python tracker ___ ___

[issue43754] Eliminate bindings for partial pattern matches

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 39494285e15dc2d291ec13de5045b930eaf0a3db by Pablo Galindo in branch 'master': bpo-43754: Fix compiler warning in Python/compile.c (GH-25855) https://github.com/python/cpython/commit/39494285e15dc2d291ec13de5045b930eaf0a3db -- _

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7719953b30430b351ba0f153c2b51b16cc68ee36 by Pablo Galindo in branch 'master': bpo-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848) https://github.com/python/cpython/commit/7719953b30430b351ba0f153c2b51b16cc68ee36 ---

[issue44006] symbol documentation still exists

2021-05-03 Thread Julien Palard
Julien Palard added the comment: After the cron passed, and after purging the HTTP cache, it now 404: $ curl https://docs.python.org/3.10/library/symbol.html 404 Not Found Thanks for noticing! -- resolution: -> fixed stage: -> resolved status: open -> closed _

[issue44011] Borrow asyncio ssl implementation from uvloop

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately I have reverted 5fb06edbbb769561e245d0fe13002bab50e2ae60 commit to unblock the beta release :( I know that nobody wants this but my responsibilities as a release manager is to safeguard the stability of the release and we are too close t

[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread Christian Heimes
Christian Heimes added the comment: New changeset c715b524210050bdd2a2e233817246d443bbb236 by Christian Heimes in branch 'master': bpo-43943: ssl tests: Increase server socket timeout, backlog, debugging (GH-25850) https://github.com/python/cpython/commit/c715b524210050bdd2a2e233817246d443bb

[issue38530] Offer suggestions on AttributeError and NameError

2021-05-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 80a2a4ed7d090fff2584302f07315d567109bca9 by Dennis Sweeney in branch 'master': bpo-38530: Refactor and improve AttributeError suggestions (GH-25776) https://github.com/python/cpython/commit/80a2a4ed7d090fff2584302f07315d567109bca9 -

[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread Christian Heimes
Christian Heimes added the comment: fingers crossed! -- resolution: -> fixed status: open -> pending type: -> behavior ___ Python tracker ___ ___

[issue44006] symbol documentation still exists

2021-05-03 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks Julien! I noticed two other libraries in the same situation: https://docs.python.org/3.10/library/formatter.html and https://docs.python.org/3.10/library/parser.html. The RST files for both are also gone from master. Could you purge the cache for them

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-05-03 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: eric.smith -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-05-03 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +newcomer friendly ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue44006] symbol documentation still exists

2021-05-03 Thread Ammar Askar
Ammar Askar added the comment: Also, would it make sense to do a clean build (with the html output folder wiped) in the build-cron to avoid this happening in the future? -- ___ Python tracker __

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

2021-05-03 Thread PAKKURTHI MOHAN SAI KRISHNA
Change by PAKKURTHI MOHAN SAI KRISHNA : -- assignee: -> terry.reedy components: +IDLE -Extension Modules, Windows nosy: +terry.reedy ___ Python tracker ___ ___

[issue44018] random.seed mutates input bytearray

2021-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, I now understand your report and will prepare a fix. -- title: Bug in random.seed -> random.seed mutates input bytearray ___ Python tracker

[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread PAKKURTHI MOHAN SAI KRISHNA
Change by PAKKURTHI MOHAN SAI KRISHNA : -- components: +macOS nosy: +ned.deily, ronaldoussoren status: pending -> open ___ Python tracker ___ __

[issue43991] asyncio lock does not get released after task is canceled

2021-05-03 Thread Jonathan Schweder
Jonathan Schweder added the comment: a.niederbuehl tasks are free of context, meaning that the task does not know what was done inside it, and by consequence is impossible to know when or not release a lock. This is by design and normally in these cases you need to be aware of the lock, by f

[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread PAKKURTHI MOHAN SAI KRISHNA
Change by PAKKURTHI MOHAN SAI KRISHNA : -- components: +Installation -macOS nosy: -ned.deily, ronaldoussoren ___ Python tracker ___ ___

[issue43943] test_ssl fails in the macos CI

2021-05-03 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes components: +SSL, Tests -Installation status: open -> pending ___ Python tracker ___

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-03 Thread Steve Dower
Steve Dower added the comment: > Making sysconfig look at sitecustomize seems like the wrong approach. I mean, you're literally customizing the site, so having it be done from sitecustomize doesn't seem terribly wrong. But I agree, I'd rather see the code in sitecustomize poke paths into sys

[issue44020] test_ssl fails in the macos CI

2021-05-03 Thread PAKKURTHI MOHAN SAI KRISHNA
Change by PAKKURTHI MOHAN SAI KRISHNA : -- components: macOS nosy: christian.heimes, mohansai, ned.deily, pablogsal, ronaldoussoren priority: normal severity: normal status: open title: test_ssl fails in the macos CI type: behavior versions: Python 3.10

[issue44021] enum docs in 3.10: missing "New in version 3.10"

2021-05-03 Thread Akuli
New submission from Akuli : https://docs.python.org/3.10/library/enum.html says "New in version 3.10: StrEnum". That's true, but these are also new in 3.10: - property (I mean enum.property, not the built-in property) - global_enum - FlagBoundary - StrEnum - EnumType (does this even exist? I c

[issue44018] random.seed mutates input bytearray

2021-05-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +24540 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25856 ___ Python tracker __

[issue44022] "urllib" will result to deny of service

2021-05-03 Thread guangli dong
New submission from guangli dong : if a client request a http/https/ftp service which is controlled by attacker, attacker can make this client hang forever, event client has set "timeout" argument. maybe this client also will consume more and more memory. i does not test on this conclusion.

[issue44020] test_ssl fails in the macos CI

2021-05-03 Thread Christian Heimes
New submission from Christian Heimes : Why did you create a new ticket and why did you modify bpo-43943? The situatuon is under control and tests are passing again. I left the other ticket in pending state because I like to monitor the situation for a couple of days. -- _

[issue44023] "tarfile" library will lead to "write any content to any file on the host".

2021-05-03 Thread guangli dong
New submission from guangli dong : if uncompress file twice to the same dir, attacker can "write any content to any file on the host"". poc code like below: ``` import tarfile dir_name = "/tmp/anything" file1_name = "/tmp/a.tar.gz" # ln -sv /tmp/a test_tar/a;tar -cvf a.tar.gz test_tar/a fi

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-03 Thread Filipe Laíns
Filipe Laíns added the comment: FYI, I have change the implementation to split the extra install schemes and extra schemes activated on site. This still makes sense over sitecustomize because we want the packages to be included in site.getsitepackages -- we want the vendor packages to essenti

[issue44020] test_ssl fails in the macos CI

2021-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: This person, mohansai, seems to be misbehaving on the tracker and should be stopped or at least educated. mohansai just reassigned a closed issue about Windows extensions to IDLE, #43710, thus assigning it to me and wasting my time. (I reverted the changes

[issue44021] enum docs in 3.10: missing "New in version 3.10"

2021-05-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailin

[issue43806] asyncio.StreamReader hangs when reading from pipe and other process exits unexpectedly

2021-05-03 Thread Jonathan Schweder
Jonathan Schweder added the comment: @kormang this is an expected behaviour, this is a problem even for the OS level, just because it is impossible to know when the reader needs to stop waiting, the best option here is to implement some timeout mechanism. -- nosy: +jaswdr __

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-05-03 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Batuhan, can this issue be closed? No, I still need to take care of what's new entry. -- ___ Python tracker ___ _

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-03 Thread Steve Dower
Steve Dower added the comment: Yes, I saw some of the latest changes in the PR. My biggest concern is with the bare "import _vendor_config", which I'd prefer to have restricted to a fixed location, rather than being influenced by environment variables and other options. We already have an is

[issue43742] tcp_echo_client in asyncio streams example does not work. Hangs for ever at reaser.read()

2021-05-03 Thread Jonathan Schweder
Jonathan Schweder added the comment: I was able to execute the example in Debian 10 + Python 3.10+ Did you execute the server too? You need to create two files, one for the client code and one for the server code, the server as specified by the example should be something like the code below

[issue43963] test_interpreters has side effects on test_signal

2021-05-03 Thread Theelgirl
Theelgirl added the comment: Sorry if I'm not supposed to open closed issues, however I believe there's a typo in the whatsnew page for this. In https://docs.python.org/3.10/whatsnew/changelog.html#changelog, the entry for bpo-43963 says "Importing the signal module in a subinterpreter has n

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

2021-05-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 8a595744e696a0fb92dccc5d4e45da41571270a1 by Senthil Kumaran in branch '3.9': [3.9] bpo-43882 Remove the newline, and tab early. From query and fragments. (#25853) https://github.com/python/cpython/commit/8a595744e696a0fb92dccc5d4e45da41571270a

[issue44021] enum docs in 3.10: missing "New in version 3.10"

2021-05-03 Thread Ethan Furman
Ethan Furman added the comment: EnumMeta has been renamed to EnumType, but has been kept as an alias. -- ___ Python tracker ___ ___

[issue41232] Python `functools.wraps` doesn't deal with defaults correctly

2021-05-03 Thread Thor Whalen
Thor Whalen added the comment: On the surface, seems like a fair design to me: Back-compatible yet solves this misalignment that bugged me (literally). It would also force the documentation of `functools.wraps` to mention this "trap", through describing the `signature_changed` flag. As for the

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-05-03 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-05-03 Thread Ned Deily
Ned Deily added the comment: New changeset 64be96ae1f85ce6b3bca4328576cf62d73f77b2a by Christian Heimes in branch '3.7': [3.7] bpo-41561: Add workaround for Ubuntu's custom security level (GH-24915) (GH-24928) https://github.com/python/cpython/commit/64be96ae1f85ce6b3bca4328576cf62d73f77b2a

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

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

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-05-03 Thread Ned Deily
Ned Deily added the comment: New changeset 512742d554f2c10e9a273855d87a68f5ee93ed29 by Miss Islington (bot) in branch '3.7': bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355) (GH-25858) https://github.com/python/cpython/commit/512742d554f2c10e9a273855d87a68f5ee93ed29 --

  1   2   >