[issue43522] SSLContext.hostname_checks_common_name appears to have no effect

2021-05-03 Thread Christian Heimes
Christian Heimes added the comment: Seth's urllib3 newsletter reminded me that I forgot to link to OpenSSL issues here. The problem was caused by a bug in OpenSSL. The issue is fixed in OpenSSL default branch and is scheduled to land in next 1.1.1 release. My changes to Python's ssl module

[issue44028] Request for locals().update() to work, it is

2021-05-03 Thread wang xuancong
New submission from wang xuancong : In general, the ability to update local variables is very important and it simplifies life tremendously. For example, in machine learning, it allows saving/loading arbitrary-format datasets and arbitrary-structure neural networks (NN) using a single line

[issue44027] Python 3.9 UWP does not create key in PythonCore

2021-05-03 Thread Ned Deily
Change by Ned Deily : -- components: +Windows -Installation nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue44027] Python 3.9 UWP does not create key in PythonCore

2021-05-03 Thread BinToss
New submission from BinToss : On Windows, dependent applications such as VapourSynth look for Python's path via the entries in HKLM\\SOFTWARE\\Python\\PythonCore\\. However, the Python 3.8 and 3.9 UWP releases don't create and write to their respective subkeys. Only the Win32 releases write

[issue26680] Incorporating float.is_integer into Decimal

2021-05-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44001] typing.Literal: args must be hashable, not immutable

2021-05-03 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +24554 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25877 ___ Python tracker ___

[issue44018] random.seed mutates input bytearray

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

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-03 Thread Dennis Sweeney
Change by Dennis Sweeney : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-03 Thread Dennis Sweeney
New submission from Dennis Sweeney : After bpo-38530, I get this in the python shell: Python 3.10.0b1 (tags/v3.10.0b1:ba42175, May 3 2021, 20:22:30) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> class A: ... foobar = 1

[issue40465] Deprecate the optional *random* argument to random.shuffle()

2021-05-03 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: -Anthony Sottile ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40465] Deprecate the optional *random* argument to random.shuffle()

2021-05-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +24553 pull_request: https://github.com/python/cpython/pull/25874 ___ Python tracker ___

[issue44018] random.seed mutates input bytearray

2021-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2995bff4269d274c0a3abfd45dc33b28f0c3e25f by Miss Islington (bot) in branch '3.10': bpo-44018: random.seed() no longer mutates its inputs (GH-25856) (GH-25872) https://github.com/python/cpython/commit/2995bff4269d274c0a3abfd45dc33b28f0c3e25f

[issue44025] Match doc: Clarify '_' as a soft keyword

2021-05-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +24552 pull_request: https://github.com/python/cpython/pull/25873 ___ Python tracker ___

[issue44025] Match doc: Clarify '_' as a soft keyword

2021-05-03 Thread Terry J. Reedy
New submission from Terry J. Reedy : In #44010, we are trying, as best as is possible with comprehensible REs, to identify in which circumstances occurrences of 'match', 'case' and '_' are keywords, and should be marked as such. I was initially unsure and even wrong about '_'. 1. Capture

[issue44018] random.seed mutates input bytearray

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

[issue43822] Improve syntax errors for missing commas

2021-05-03 Thread miss-islington
miss-islington added the comment: New changeset d1ff838d1091853ed6f56bc1573606dc0d74a691 by Miss Islington (bot) in branch '3.10': bpo-43822: Prioritize tokenizer errors over custom syntax errors when raising parser exceptions (GH-25866)

[issue43822] Improve syntax errors for missing commas

2021-05-03 Thread miss-islington
miss-islington added the comment: New changeset 756b7b9248885d65c2b3b9f1c5a8f66aa2e8de7a by Miss Islington (bot) in branch '3.10': bpo-43822: Prioritize tokenizer errors over custom syntax errors when raising parser exceptions (GH-25866)

[issue43822] Improve syntax errors for missing commas

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

[issue43822] Improve syntax errors for missing commas

2021-05-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24549 pull_request: https://github.com/python/cpython/pull/25869 ___ Python tracker

[issue31526] Allow setting timestamp in gzip-compressed tarfiles

2021-05-03 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44018] random.seed mutates input bytearray

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

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-05-03 Thread Hasan
Hasan added the comment: Does this issue still open? I would like to write this tests. -- nosy: +AliyevH ___ Python tracker ___

[issue43822] Improve syntax errors for missing commas

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

[issue44018] random.seed mutates input bytearray

2021-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e733e9951d0116e9af66b66772e708412d7f5280 by Miss Islington (bot) in branch '3.9': bpo-44018: random.seed() no longer mutates its inputs (GH-25856) (GH-25864) https://github.com/python/cpython/commit/e733e9951d0116e9af66b66772e708412d7f5280

[issue44018] random.seed mutates input bytearray

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

[issue44018] random.seed mutates input bytearray

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

[issue44024] Use common TypeError message for built-in functions getattr and hasattr

2021-05-03 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +24544 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25863 ___ Python tracker ___

[issue44024] Use common TypeError message for built-in functions getattr and hasattr

2021-05-03 Thread Géry
New submission from Géry : Problem --- Actual behaviour: ```python >>> getattr('foobar', 123) Traceback (most recent call last): File "", line 1, in TypeError: getattr(): attribute name must be string >>> hasattr('foobar', 123) Traceback (most recent call last): File "", line 1, in

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

2021-05-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: terry.reedy -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-05-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Extension Modules, Windows -IDLE ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39468] Improved the site module's permission handling while writing .python_history

2021-05-03 Thread Aurora
Change by Aurora : -- pull_requests: +24543 status: pending -> open pull_request: https://github.com/python/cpython/pull/18210 ___ Python tracker ___

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

2021-05-03 Thread Alexander Niederbühl
Alexander Niederbühl added the comment: That makes sense, thanks! -- stage: -> resolved status: open -> closed ___ Python tracker ___

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

2021-05-03 Thread julian colomina
julian colomina added the comment: @jaswdr Thanks for your response. No I did not run the server that you mention. The language made me imply that the same process, in two separate coroutines, would be writing/reading from each end of the tcp connection. One writing to the tcp buffer,

[issue41222] POpen bufsize=0 ignored with universal_newlines=True

2021-05-03 Thread Yann Dirson
Yann Dirson added the comment: > The fact that my stdout object has no read1() and needs the above patch looks > like a good lead for further investigation? That's linked to universal_newlines, the bug only shows when that flag is set. Testcases provided in

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

2021-05-03 Thread Yann Dirson
Change by Yann Dirson : -- keywords: +patch pull_requests: +24542 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25859 ___ 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 --

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

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

[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

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

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

[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

[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

[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

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

[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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

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

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

[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

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

[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

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

[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

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

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

[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

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

[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: New changeset c715b524210050bdd2a2e233817246d443bbb236 by Christian Heimes in branch 'master': bpo-43943: ssl tests: Increase server socket timeout, backlog, debugging (GH-25850)

[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

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

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

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

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

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

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

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

[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

[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

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

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

[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

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

[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

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

[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

[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

[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

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

[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

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

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

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

[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

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

  1   2   >