[issue44063] compiler: does not revert back the end_* locations

2021-05-06 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +24617 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25956 ___ Python tracker ___

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

2021-05-06 Thread Daniel Watkins
Daniel Watkins added the comment: Hey folks, Thanks for all the work on this: I really appreciate the efforts to keep Python as secure as possible! This change _is_ causing us problems in the cloud-init codebase, which thankfully have been caught by our testing in Ubuntu's development relea

[issue43972] Simple HTTP Request Handler in http.server does not set a content-length and does not close connections on 301s

2021-05-06 Thread miss-islington
miss-islington added the comment: New changeset 058f9b27d3838f04bbb313074941e9f9946a33bc by Miss Islington (bot) in branch '3.10': bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s (GH-25705) https://github.com/python/cpython/commit/058f9b27d3838f04bbb313074941

[issue44059] Support SerenityOS Browser in webbrowser module

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset fbefdaf92e40134c43142c182f7c5bfe406e4c2b by Miss Islington (bot) in branch '3.10': bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947) (GH-25950) https://github.com/python/cpython/commit/fbefdaf92e40134c43142c182f7c

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

2021-05-06 Thread Daniel Watkins
Daniel Watkins added the comment: (Accidentally dropped Ned from nosy list; apologies!) -- nosy: +ned.deily ___ Python tracker ___

[issue43972] Simple HTTP Request Handler in http.server does not set a content-length and does not close connections on 301s

2021-05-06 Thread miss-islington
miss-islington added the comment: New changeset b391b9b9255697ce6028bb4e7a99c18080aa991c by Miss Islington (bot) in branch '3.9': bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s (GH-25705) https://github.com/python/cpython/commit/b391b9b9255697ce6028bb4e7a99c

[issue43972] Simple HTTP Request Handler in http.server does not set a content-length and does not close connections on 301s

2021-05-06 Thread Senthil Kumaran
Change by Senthil Kumaran : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

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

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: We try to not add a new parameter in a bugfix release as that can be difficult to use. That said, adding a new bool keyword only parameter to control this behavior seems feasible. Unfortunately you already have to deal with the existence of 3.9.5 having t

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-06 Thread Eryk Sun
Eryk Sun added the comment: > In any case, it should not be necessary to get Python permissions > to execute write / update methods in Python against HKLM hive HKEY_LOCAL_MACHINE is a predefined handle for the key "\REGISTRY\MACHINE". This key is not mounted by a hive. There are several hive

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

2021-05-06 Thread Mike Lissner
Mike Lissner added the comment: > With the fix for this bug, urlsplit silently removes (some of) those > characters before we can replace them, modifying the output of our > sanitisation code I don't have any good solutions for 3.9.5, but going forward, this feels like another example of w

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-06 Thread Miguel Brito
Miguel Brito added the comment: I can reproduce it on latest master running on Linux. steve.dower: I wrote some tests and wrapping get_importer argument with os.fsdecode() fixes it. I'm happy to open an PR, just let me know or if OP is not willing to do so either. -- nosy: +miguend

[issue26680] Incorporating float.is_integer into Decimal

2021-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: This has gone stale and I've been unable to contact the OP. Marking as closed for now. Please reopen if this comes back to life again and I'll review the PR. -- resolution: -> remind stage: patch review -> resolved status: open -> closed __

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

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Of note: If we had chosen to raise a ValueError (or similar) for these characters by default, the cloud-init code would also fail to behave as intended today (based on what I see in https://github.com/canonical/cloud-init/commit/c478d0bff412c67280dfe8f0856

[issue40297] test_socket.CANTest is broken at HEAD on master

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

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

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW, if we were to add a parameter, I'd lean towards a name of "invalid_url_characters = None" defaulting to using what's in our private _UNSAFE_URL_BYTES_TO_REMOVE global when None but otherwise letting the user specify a sequence of characters. ---

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-05-06 Thread Ulrich Petri
Ulrich Petri added the comment: @eric.smith Sure, here you go: dataclass_empty.py: ``` from dataclasses import dataclass @dataclass class A: pass @dataclass(frozen=True) class B(A): x: int print("42") ``` Running this on < 3.8.10: ``` $ ~/.pythonz/pythons/CPython-3.8.1/bin/pytho

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: Hmm. I think maybe the intent was that if you're frozen, treat all the fields as frozen, including ones you inherit, regardless if the base classes are frozen or not. -- ___ Python tracker

[issue11466] getpass.getpass doesn't close tty file

2021-05-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: This was fixed in https://github.com/python/cpython/commit/16dbbae2981c96c7c9b1ae81e1708d54b08c10ac Since Python 3.4 And tests do not raise any ResourceWarning now. ``` $ ../../python -Vs Python 3.11.0a0 $ ../../python -m unittest test_getpass.py -v test_u

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-06 Thread Steve Dower
Steve Dower added the comment: > I can reproduce it on latest master running on Linux. Interesting. Perhaps my actual change was to cause it to raise an error earlier (outside of a handler)? Which would mean that the Path object was always failing before, just silently. Arguably we should f

[issue44059] Support SerenityOS Browser in webbrowser module

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-05-06 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +3.8regression, 3.9regression -patch resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___ _

[issue44064] Python39/lib/logging/__init__.py SyntaxError: cannot delete starred

2021-05-06 Thread Kathleen West
New submission from Kathleen West : There is a syntax error in the python library "Python39/lib/logging/__init__.py" that when I run this is VS Code in debug mode, this shows up all the time. python --version Python 3.9.4 Python39/lib/logging/__init__.py { "resource": "/C:/Users/

[issue44064] Python39/lib/logging/__init__.py SyntaxError: cannot delete starred

2021-05-06 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Line 1030 of 3.9.4 is at https://github.com/python/cpython/blob/1f2e3088f3c097b5bde69bbd63dfcd0852d31984/Lib/logging/__init__.py#L1030 and doesn't have a del statement or a syntax error. Most likely there's some mismatch where you're running the wrong versio

[issue44064] Python39/lib/logging/__init__.py SyntaxError: cannot delete starred

2021-05-06 Thread Kathleen West
Kathleen West added the comment: Jelle Zijlstra (Jelle Zijlstra) "Saying it so doesn't make it so" See the photo for proof. If you could reply with more details and clear steps on how to resolve the issue, that would be appreciated. -- ___ Python

[issue44064] Python39/lib/logging/__init__.py SyntaxError: cannot delete starred

2021-05-06 Thread Kathleen West
Kathleen West added the comment: The "del" statement *** del_stmt ::= "del" target_list Deletion is recursively defined very similar to the way assignment is defined. Rather than spelling it out in full details, here are some hints. Deletion of a target list recursively de

[issue44064] Python39/lib/logging/__init__.py SyntaxError: cannot delete starred

2021-05-06 Thread Kathleen West
Kathleen West added the comment: I literally changed the base logging code to this and it worked finally: del t del v del tb -- ___ Python tracker ___

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2021-05-06 Thread Kevin
Kevin added the comment: FYI, the problem here is that AIX fcntl returns EACCES in the case that the lock is held and non-blocking behavior was requested: > The lockfx and lockf subroutines fail if one of the following is true: Item > > EACCESThe Command parameter is F_SETLK, the l_

[issue40297] test_socket.CANTest is broken at HEAD on master

2021-05-06 Thread Zachary Ware
Change by Zachary Ware : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40297] test_socket.CANTest is broken at HEAD on master

2021-05-06 Thread Zachary Ware
Change by Zachary Ware : -- pull_requests: +24619 pull_request: https://github.com/python/cpython/pull/25960 ___ Python tracker ___

[issue44064] Python39/lib/logging/__init__.py SyntaxError: cannot delete starred

2021-05-06 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: "del t, v, tb" is perfectly legal Python syntax. It's whatever tool is showing a syntax error there (jedi, apparently) that's buggy. % python3.9 Python 3.9.4 (default, Apr 9 2021, 09:47:14) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin Type "help", "copyrig

[issue44064] Python39/lib/logging/__init__.py SyntaxError: cannot delete starred

2021-05-06 Thread Kathleen West
Kathleen West added the comment: We have a root cause/answer to the issue for future reference. Jedi is a static analysis tool for Python that is typically used in IDEs/editors plugins (VS Code) I will create a bug here: https://github.com/Microsoft/vscode-python -- resolution: ->

[issue40943] PEP 353: Drop support for PyArg_ParseTuple() "#" formats when PY_SSIZE_T_CLEAN is not defined

2021-05-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24620 pull_request: https://github.com/python/cpython/pull/25961 ___ Python tracker _

[issue44064] Python39/lib/logging/__init__.py SyntaxError: cannot delete starred

2021-05-06 Thread Kathleen West
Kathleen West added the comment: Created an issue @ microsoft/vscode-python https://github.com/microsoft/vscode-python/issues/16174 -- stage: -> resolved status: open -> closed ___ Python tracker _

[issue40943] PEP 353: Drop support for PyArg_ParseTuple() "#" formats when PY_SSIZE_T_CLEAN is not defined

2021-05-06 Thread miss-islington
miss-islington added the comment: New changeset 569ca81adf0be92be8752f6cc6492117f9ef3c0b by Miss Islington (bot) in branch '3.10': bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937) https://github.com/python/cpython/commit/569ca81adf0be92be8752f6cc6492117f9ef3c0b --

[issue40943] PEP 353: Drop support for PyArg_ParseTuple() "#" formats when PY_SSIZE_T_CLEAN is not defined

2021-05-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue37892] IDLE Shell: isolate user code input

2021-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 25678 merged on top of the sidebar patch results in using space indents with the sidebar. An additional patch is needed to have the mode with '>>>' on a line by itself instead of having a sidebar. The shell prompt_last_line attribute is now obsolete (it

[issue44065] "configure: error: internal configure error for the platform triplet" on macOS with Clang supporting --print-multiarch:

2021-05-06 Thread Stephan Bergmann
New submission from Stephan Bergmann : I experienced this with Python 3.8 when building it as part of LibreOffice (see "external/python3: Clang 13 trunk implements --print-multiarch now", quoting from its comm

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-06 Thread Rikard Nordgren
Rikard Nordgren added the comment: Thanks all for looking into this! > Though I'm sure the OP would > have noticed if their call was never returning any modules, so > presumably it must have worked somehow. Yes, that snippet returns modules with the previous versions of python 3.8 and 3.9

[issue44065] "configure: error: internal configure error for the platform triplet" on macOS with Clang supporting --print-multiarch:

2021-05-06 Thread Christian Heimes
Christian Heimes added the comment: Python 3.8 is in security fix-only mode and does no longer updates for non-security fixes. Are Python 3.9 and 3.10 beta affected, too? -- nosy: +christian.heimes ___ Python tracker

<    1   2