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

[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 ___ ___ Python-bugs-lis

[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: https://mail.py

[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

[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 https://docs.python.org/dev/library/unittest.mock-example

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

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

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

[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) https://github.com/python/cpython/commit/f396864ddfe914531b5856d

[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: https://mail

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

[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) == 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: https://mail.p

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

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

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

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

[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

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

[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

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

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

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

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

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

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

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

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

[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

[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'] .azure-

[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: https://ma

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

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

[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

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

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

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

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

[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: https://m

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

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

[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

[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

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

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

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

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

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

2021-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: Can you provide a small snippet of code showing the kind of thing that broke? -- ___ 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 a

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

[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 `server.py`

[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 f4dac7ec55477a6c5d965e594e74bd6bda786903 by Miss Islington (bot) in branch '3.7': [3.7] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25923) https://github.com/python/cpython/commit/f4dac7ec55477a6c5d965e594e74

[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) https://github.com/python/cpython/commit/6c472d3a1d334d4eeb4a25eba7bf3

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

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

[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) https://github.com/python/cpython/commit/f68d2d69f1da56c2aea1293

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

[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) https://github.com/python/cpython/commit/078b146f062d212919d0ba2

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

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

[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

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

2021-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: Sure. Take your time! Thank you in advance for your contribution. -- ___ Python tracker ___ ___ Py

[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: 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. As for the OpenKey method, it fails with [WinError 5] Access denied, exactly the same way my ex

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

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

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

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

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

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

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

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

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

[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: "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)." @William: Sure, I und

[issue44062] cross: wrong interpreter returned when no python available

2021-05-06 Thread Vincent Fazio
New submission from Vincent Fazio : When trying to cross compile python3.9, `configure` attempts to find a strict python 3.9 version match, however if it fails it still attempts to use `python` in PYTHON_FOR_BUILD instead of failing outright like the code implies it should $/python3/targetbui

[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: Don't run VSCode in admin mode. Just set python to admin mode. See if it works then. -- ___ 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 Gregory P. Smith
Gregory P. Smith added the comment: https://bugs.python.org/issue43105 and https://github.com/python/cpython/pull/25121 caused this regression. -- assignee: -> steve.dower keywords: +3.8regression, 3.9regression nosy: +gregory.p.smith, lukasz.langa, steve.dower priority: normal -> re

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: This caused a regression described in https://bugs.python.org/issue44061 -- nosy: +gregory.p.smith ___ 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 Gregory P. Smith
Gregory P. Smith added the comment: (obviously we're missing any tests for use of Path objects in this situation) -- stage: -> needs patch type: crash -> behavior ___ Python tracker

[issue44059] Support SerenityOS Browser in webbrowser module

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Quite a humorous long list of historical browsers still in the webbrowser module. This can join the list. The PR should automerge after the CI runs complete. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___

[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: Looks like it was always getting lucky in the past, as sys.path requires strings, and the "path" argument here is an alternative to it. The cache was definitely not working as intended. So while it's not clearly documented anywhere (other than the related pkgu

[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: To be clear, I'll get to this when I can, but if someone else wants to write the fix I'm happy to review and merge. Don't wait for me to do this one just because I'm assigned. -- versions: +Python 3.11 ___ Python tra

[issue44059] Support SerenityOS Browser in webbrowser module

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

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: I don't believe CPython should be working around a bug in specific Linux kernel versions in the standard library unless they are extremely pernicious and not considered to be a bug and thus ever be fixed in the OS kernel. As the sendfile system call appear

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

2021-05-06 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: It's mentioned that Python 3.9.5 has this regression but the code works fine on my windows machine. Is this only reproducible on POSIX? -- nosy: +shreyanavigyan versions: -Python 3.11 ___ 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 Shreyan Avigyan
Change by Shreyan Avigyan : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue44062] cross: wrong interpreter returned when no python available

2021-05-06 Thread Vincent Fazio
Change by Vincent Fazio : -- keywords: +patch pull_requests: +24614 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25951 ___ 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: For completeness reference, the 'main' branch after the master->main rename also got fixed to check it early the same was as the release branches via: https://github.com/python/cpython/commit/985ac016373403e8ad41f8d563c4355ffa8d49ff our robot updating bug

[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
Change by miss-islington : -- pull_requests: +24616 pull_request: https://github.com/python/cpython/pull/25953 ___ Python tracker ___ __

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2021-05-06 Thread Sergey Polischouck
Change by Sergey Polischouck : -- nosy: +polischouckserg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +24615 pull_request: https://github.com/python/cpython/pull/25952 ___ Python tracker _

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

2021-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: If anyone wants a CVE for it, that's up to them. This bug is in the CPython http.client module which is what urllib uses for http/https. I'd rate it low severity. A malicious server can hold a http connection from this library open as a network traffic

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

2021-05-06 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : Something that I've stumbled up while working on another patch is that, the compiler doesn't revert the end_lineno and the end_col_offset attributes back unlike regular lineno/col_offset. An example of this problem; ar rcs libpython3.10d.a Modules/getbuildi

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

2021-05-06 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

  1   2   >