[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

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

[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

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

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

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

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

[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

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

[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

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

[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

[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

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-05-06 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: A stronger case is the "Formal Syntax" on https://tools.ietf.org/html/rfc4954#page-13 : > continue-req= "334" SP [base64] CRLF > ;; Intermediate response to the AUTH > ;; command. >

[issue17681] Work with an extra field of gzip and zip files

2021-05-06 Thread Nikolaus Rath
Change by Nikolaus Rath : -- nosy: -nikratio ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44051] Virtualalloc wrong return type

2021-05-06 Thread baptistecrepin
baptistecrepin added the comment: Thank you, I didn't know that ctypes wasn't prototyped. I only use VirtualAlloc in combination with RtlMoveMemory and CreateThread in order to execute shellcodes for research purposes. -- ___ Python tracker

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

2021-05-06 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok. I tested it. And I'm now completely sure that you're not running in Administrator mode. I'll give you the steps to solve this problem but first of all where are you running this code from, IDLE, Python or any other IDE? How to run in admin mode depends

[issue44052] patch object as argument should be explicit

2021-05-06 Thread Pierre Ossman
New submission from Pierre Ossman : Right now if you use unittest.mock.patch() as a decorator it may or may not pass the object as an argument to the test function. The behaviour is a side effect of the argument "new" rather than something the caller can explicitly control. In many cases

[issue36515] unaligned memory access in the _sha3 extension

2021-05-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset ce47addfb6f176fad053431b537b77a5f170765e by Miss Islington (bot) in branch '3.9': [3.9] bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927) (GH-25928)

[issue36515] unaligned memory access in the _sha3 extension

2021-05-06 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

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

2021-05-06 Thread Inada Naoki
Inada Naoki added the comment: There is a still warning, not error. https://github.com/python/cpython/blob/985ac016373403e8ad41f8d563c4355ffa8d49ff/Python/getargs.c#L2535-L2542 -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue44053] Can't connect to a server also not showing any type of output

2021-05-06 Thread Muqaddas Rasheed
Change by Muqaddas Rasheed : -- nosy: muqadasrasheed652 priority: normal severity: normal status: open title: Can't connect to a server also not showing any type of output ___ Python tracker

[issue44045] canonicalize "upper-case" -> "uppercase"; "lower-case" -> "lowercase"

2021-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: I think we'd want to look at the 33 uses with hyphens to make sure removing the hyphen is correct (as opposed to just blindly make a change). But I'm generally supportive. -- nosy: +eric.smith ___ Python tracker

[issue44053] Can't connect to a server also not showing any type of output

2021-05-06 Thread Eric V. Smith
New submission from Eric V. Smith : If you think this is a bug, please attach the text of a stand-alone example demonstrating the problem. Please do not attach an image or a screen capture, use text so we can run and reproduce the problem. That said, it's unlikely this is a bug in Python.

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

2021-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why PR 20784 has been merged? Was not the plan to emit a deprecation warning first? -- ___ Python tracker ___

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

2021-05-06 Thread Inada Naoki
Inada Naoki added the comment: >Why PR 20784 has been merged? Was not the plan to emit a deprecation warning >first? We had been emitted DeprecationWarning since Python 3.8. See GH-12473. GH-20784 changed the DeprecationWarning to SystemError. --

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

2021-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I was confused by Victor's long msg371219. -- ___ Python tracker ___ ___

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-05-06 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: Technically, that is not the fault of smtplib.SMTP The standard for SMTP AUTH specifies that characters following "334 " MUST be Base64 encoded. See https://tools.ietf.org/html/rfc4954#page-4 , 3rd paragraph: > A server challenge is sent as a 334 reply

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-05-06 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: > I am using Magic Winmail Server2.4(build 0530) as a SMTP server, which > appears dont support initial_response, so I set initial_response_ok=False and > got this Error. currently I catch this error and ignore it to evade program > failed, it works fine.

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

2021-05-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -21763 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-06 Thread guangli dong
guangli dong added the comment: can you assign "cve" for this security bug? i will review the patch later. -- ___ Python tracker ___

[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 : -- pull_requests: +24605 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25937 ___ Python tracker ___

[issue23903] Generate PC/python3.def by scraping headers

2021-05-06 Thread Petr Viktorin
Petr Viktorin added the comment: The symbols exported by python3.dll are now generated from Misc/stable_abi.txt as per PEP 652. See the devguide for more details: https://devguide.python.org/c-api/ This is slightly more work than generating the list fully automatically, but the extra work

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Christian Heimes
Christian Heimes added the comment: 2**53-1 is also the largest safe rational number in JavaScript and JSON where double precision floats and ints behave the same, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER -- nosy:

[issue44052] patch object as argument should be explicit

2021-05-06 Thread Pierre Ossman
Pierre Ossman added the comment: I've always been cautious about running patch() manually since it was easy to miss the cleanup. But those fears might be irrelevant these days when we have addCleanup(). Still, decorators are a more robust in more complex setups since you don't have to

[issue37903] IDLE Shell sidebar.

2021-05-06 Thread Tal Einat
Tal Einat added the comment: > Is it possible to add a Settings option under the General tab to switch > between the sidebar mode and traditional mode? Raymond, that should be possible, and possibly rather easily. I'll take a look at adding this option. --

[issue44055] NamedTemporaryFile opened twice on Windows

2021-05-06 Thread Lumír Balhar
New submission from Lumír Balhar : Hello. The documentation about tempfile.NamedTemporaryFile[0] contains: That name can be retrieved from the name attribute of the returned file-like object. Whether the name can be used to open the file a second time, while the named temporary file is still

[issue44057] Inconsitencies in `__init_subclass__` in a generic class

2021-05-06 Thread Erez Zinman
New submission from Erez Zinman : The following behavior was witnessed in v3.6 & v3.8. When deriving from a Generic base class, there's an inconsistency in the order of operation within the `__new__()` function between the case of deriving WITH generic-argument specification and WITHOUT. It

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Boštjan Mejak
Boštjan Mejak added the comment: I would compare it like this: >>> from decimal import Decimal >>> 2**53 + 1 == Decimal(2**53 + 1) True -- nosy: +PedanticHacker ___ Python tracker

[issue44052] patch object as argument should be explicit

2021-05-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: In my test cases I have ended up just ignoring the mock object with a placeholder if it's not needed. For the given use case you can do this using patch objects at setUp and tearDown like in

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-06 Thread Christian Heimes
Christian Heimes added the comment: http.server is out of scope for CVEs. The module is not designed for security-sensitive usage and explicitly documented as insecure and not suitable for production use: https://docs.python.org/3/library/http.server.html#module-http.server > Warning:

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug. It is *literally correct* that the int 9007199254740993 is not equal to the float 9007199254740992.0 so I really don't know why you would desire a different result. If you want to compare two floats, compare two floats, not an int and a

[issue44056] Incorrect line number for syntax error.

2021-05-06 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +24606 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25939 ___ Python tracker

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f396864ddfe914531b5856d7bf852808ebfc01ae by Miss Islington (bot) in branch '3.8': bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (#25933)

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-06 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Stefan Behnel
New submission from Stefan Behnel : I'm not sure if I should consider this a bug, but I'd at least frown at the behaviour, so I thought I'd bring this up here. Python 3.8.5 (default, Jan 27 2021, 15:41:15) [GCC 9.3.0] on linux >>> 2**53 == float(2**53) True >>> float(2**53+1) ==

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-06 Thread guangli dong
guangli dong added the comment: @Christian Heimes this bug is about "urllib" client library, the key point is not "http.server" module. -- ___ Python tracker ___

[issue44056] Incorrect line number for syntax error.

2021-05-06 Thread Mark Shannon
New submission from Mark Shannon : Consider this function, which has a syntax error on line 4. >>> def f(): ... try: ... 1/0 ... except: ... pass ... except Exception: ... pass 3.9 reports an incorrect line number of 3. 3.10b reports an even more

[issue44058] 'master' refs in 3.10 version of .azure-pipelines

2021-05-06 Thread Skip Montanaro
New submission from Skip Montanaro : Should these references to "master" be changed to "main"? % git co 3.10 Switched to branch '3.10' Your branch is up to date with 'origin/3.10'. % egrep master .azure-pipelines/* .azure-pipelines/ci.yml:trigger: ['master', '3.10', '3.9', '3.8', '3.7']

[issue44059] Support SerenityOS Browser in webbrowser module

2021-05-06 Thread Linus Groh
Change by Linus Groh : -- keywords: +patch pull_requests: +24611 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25947 ___ Python tracker ___

[issue44060] Define TARGET macro the same even when computed goto support is not enabled

2021-05-06 Thread Skip Montanaro
New submission from Skip Montanaro : When the interpreter is compiled with computed goto support, the TARGET macro is defined like this: #define TARGET(op) op: TARGET_##op If computed gotos are disabled, the implementation is simpler: #define TARGET(op) op I'm finding it useful to use those

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

2021-05-06 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-05-06 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

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

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Mark Dickinson
Mark Dickinson added the comment: > But the way I would have expected this to work is that a comparison of an > integer to a float would first convert the integer to a float I have a vague memory that that's the way it *did* work once upon a time, many many decades ago. But an equality

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Mark Dickinson
Mark Dickinson added the comment: > I have a vague memory that that's the way it *did* work once upon a time Here we go: https://bugs.python.org/issue513866 And the corresponding commit, from September 2004: https://github.com/python/cpython/commit/307fa78107c39ffda1eb4ad18201d25650354c4e

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-05-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24609 pull_request: https://github.com/python/cpython/pull/25944 ___ Python tracker ___

[issue44057] Inconsitencies in `__init_subclass__` in a generic class

2021-05-06 Thread Erez Zinman
Erez Zinman added the comment: Also Tensorflow. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23937] IDLE: revise window size, placement startup options

2021-05-06 Thread E. Paine
Change by E. Paine : -- pull_requests: +24610 pull_request: https://github.com/python/cpython/pull/25946 ___ Python tracker ___ ___

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Mark Dickinson
Mark Dickinson added the comment: Closing here, since this isn't a bug. But I'd still like to understand better what Stefan meant by "That's also what the code says." -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-05-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24607 pull_request: https://github.com/python/cpython/pull/25942 ___ Python tracker ___

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Stefan Behnel
Stefan Behnel added the comment: > I really don't know why you would desire a different result. I found it surprising that a comparison uses a different method of conversion than the (obvious) user-side conversion, with a different outcome. This seems to be implementation details leaking

[issue35663] webbrowser.py firefox bug [python3, windows 10]

2021-05-06 Thread pavan kumar punna
pavan kumar punna added the comment: Your code is working fine on windows 10 64-bit and returning True as it opens firefox. python-3.9.2. The issue should be closed. -- nosy: +punnapavankumar9 ___ Python tracker

[issue44059] Support SerenityOS Browser in webbrowser module

2021-05-06 Thread Linus Groh
New submission from Linus Groh : SerenityOS [1] maintains its own port of Python (currently 3.9.5) [2], with increasingly fewer custom patches. It has its own webbrowser (called "Browser") [3][4], which is the only browser installed by default - as a result, webbrowser.open() currently does

[issue44057] Inconsitencies in `__init_subclass__` in a generic class

2021-05-06 Thread Erez Zinman
Erez Zinman added the comment: You're right. I accidentally used 3.6.9 both times. Thank you anyway. Regardless, that's unfortunate that you don't support the version 3.8 anymore, since many frameworks do not officially support 3.9 as of yet (pytorch, for example). --

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-05-06 Thread miss-islington
miss-islington added the comment: New changeset f8778f96e8b2864093bc8b283598e82c0dd00133 by Miss Islington (bot) in branch '3.10': bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942) https://github.com/python/cpython/commit/f8778f96e8b2864093bc8b283598e82c0dd00133 --

[issue44057] Inconsitencies in `__init_subclass__` in a generic class

2021-05-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37903] IDLE Shell sidebar.

2021-05-06 Thread Tal Einat
Tal Einat added the comment: Upon reading Terry's previous comments here more carefully, it's clear that he will be adding an option to switch between this mode and an alternate mode with prompts on separate lines in the main text widget. The latter will be much more similar to the

[issue44057] Inconsitencies in `__init_subclass__` in a generic class

2021-05-06 Thread Ken Jin
Ken Jin added the comment: Hi Erez, thank you for the bug report. What minor version of 3.8 are you using exactly? I'm able to reproduce this on 3.6.8, but not on 3.8.5. BTW, Python 3.8 is no longer receiving bugfixes - only security fixes. The only versions still getting bugfixes right now

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

2021-05-06 Thread Ulrich Petri
Ulrich Petri added the comment: Wether the original behaviour was intentional or not this change introduces backwards incompatibility (and in our case, breakage) between 3.8.10 and previous releases (I expect the same to be true for the equivalent 3.9 releases). -- nosy: +ulope

[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 Stephen Rosen
Stephen Rosen added the comment: Thanks for working with me to reproduce and understand the issue. I'm a little surprised that with the sample which sets the protocol version you're still not seeing the issue. If I create a directory tree, e.g. repro ├── foo/ └── server.py where

[issue44055] NamedTemporaryFile opened twice on Windows

2021-05-06 Thread Eryk Sun
Eryk Sun added the comment: Your example uses delete=False. In Windows, the provision about reopening the file while it's open applies to delete=True. With the latter, the file is opened with the O_TEMPORARY flag. At the OS level, this flag modifies the CreateFileW() call as follows:

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-06 Thread Ned Deily
Change by Ned Deily : -- stage: commit review -> resolved versions: +Python 3.6, Python 3.7 -Python 3.10, Python 3.11, Python 3.8, Python 3.9 ___ Python tracker ___

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-06 Thread Ned Deily
Ned Deily added the comment: New changeset 078b146f062d212919d0ba25e34e658a8234aa63 by Miss Islington (bot) in branch '3.7': bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (GH-25934)

[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: > The whoami process check output shows that my account is in > BUILTIN\Administrators, which proves that the account I am > logged in as local Administrator permissions. Please show the output when whoami.exe is spawned from Python. I never questioned whether

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

2021-05-06 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The most easy way to do is right click on the application you're running the code from, click Run as Administrator and then run the code in that application. You'll not get any WinError. And also being in the Administrators group doesn't mean whatever

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

2021-05-06 Thread Paul
Paul added the comment: @Eryk: GROUP INFORMATION - Group Name: Everyone Type: Well-known group SID:S-1-1-0 Attributes: Mandatory group, Enabled by default, Enabled group Group Name: NT AUTHORITY\Local account and member of Administrators group Type:

[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 : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[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
Senthil Kumaran added the comment: Hi Stephen, Thanks for the response and the details. I was able to verify the bug! I don't know exactly what I was doing previously, but I agree with you that this is a bug and will be fixed with your patch. :) Thanks, Senthil --

[issue41730] Show deprecation warnings for tkinter.tix

2021-05-06 Thread wyz23x2
wyz23x2 added the comment: When this issue was submitted on September 5, 2020, Python 3.9 was still in beta/rc stages. Now 242 days have passed and the developing of 3.11 has started. :) -- ___ Python tracker

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

2021-05-06 Thread Ned Deily
Ned Deily added the comment: New changeset 6c472d3a1d334d4eeb4a25eba7bf3b01611bf667 by Miss Islington (bot) in branch '3.6': [3.6] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs (GH-25924)

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-05-06 Thread Ned Deily
Ned Deily added the comment: New changeset f68d2d69f1da56c2aea1293ecf93ab69a6010ad7 by Miss Islington (bot) in branch '3.6': bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (GH-25935)

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

2021-05-06 Thread Douwe Hoekstra
Douwe Hoekstra added the comment: I'd like to fix this. Since this would be my first contribution ever, I will need some time to figure out procedures and style requirements regarding documentation. I estimate this will take me no longer than 3 days. -- nosy: +dhoekstra

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

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

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

2021-05-06 Thread William Pickard
William Pickard added the comment: Here's something you should know about Windows, even if a local account is in the Administrators group, it still has restrictions on what it can do, it just has the power to elevate itself without requiring login credentials (VIA UAC prompts). This group

[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
New submission from Rikard Nordgren : The pkgutil.iter_modules crash when using Path object in the first argument. The code below works in python 3.8.9 and 3.9.4, but stopped working in python 3.8.10 and 3.9.5. Changing from Path to str works in all versions. import pkgutil from pathlib

[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: Thank you. The output shows that the Python process is using a UAC limited security context, i.e. the administrators group is enabled only for access-denied rules, and the integrity level is medium (not elevated to high or system level). Group Name:

[issue41730] Show deprecation warnings for tkinter.tix

2021-05-06 Thread wyz23x2
Change by wyz23x2 : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-05-06 Thread Keith Smiley
Keith Smiley added the comment: Someone nonchalantly updated these in https://github.com/python/cpython/commit/2fc857a5721a5b42bcb696c9cae1bbcc82a91b17 so this bug is now fixed -- stage: patch review -> resolved status: open -> closed ___ Python

[issue44060] Define TARGET macro the same even when computed goto support is not enabled

2021-05-06 Thread Skip Montanaro
Change by Skip Montanaro : -- keywords: +patch pull_requests: +24612 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25949 ___ Python tracker ___

[issue44054] 2**53+1 != float(2**53+1)

2021-05-06 Thread Tim Peters
Tim Peters added the comment: [Stefan] > I found it surprising that a comparison uses a different > method of conversion than the (obvious) user-side > conversion, with a different outcome. This seems to be > implementation details leaking into the user side. It's "spirit of 754", though, so

[issue34451] docs: tutorial/introduction doesn't mention toggle of prompts

2021-05-06 Thread Douwe Hoekstra
Douwe Hoekstra added the comment: Hi David! There is a button marked '>>>' in the top right corner of code blocks with Interactive code examples. This toggles between the interaction as it would appear in a terminal and a mode where only the input is listed without the '>>>'. See for

[issue43075] ReDoS in urllib.request

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

[issue43075] ReDoS in urllib.request

2021-05-06 Thread Ned Deily
Ned Deily added the comment: New changeset 3fbe96123aeb4fa547a8f6022efa2dc8788f by Miss Islington (bot) in branch '3.6': bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25250) https://github.com/python/cpython/commit/3fbe96123aeb4fa547a8f6022efa2dc8788f

  1   2   >