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

2021-05-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am also hesitant to fix something that is not broken. So, please share the broken behavior that could be verified, and this will give us greater confidence to commit this patch. -- ___ Python tracker

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2021-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, thanks for the work to mitigate the costs of _PyType_GetModuleByDef(). It now has much lower overhead. -- ___ Python tracker

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

2021-05-05 Thread Hasan
Change by Hasan : Removed file: https://bugs.python.org/file50018/test_plistlib_plutil.py ___ Python tracker ___ ___ Python-bugs-list

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

2021-05-05 Thread Hasan
Change by Hasan : Added file: https://bugs.python.org/file50020/test_plistlib_plutil.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2021-05-05 Thread Hasan
Change by Hasan : Removed file: https://bugs.python.org/file50019/test_plistlib_plutil.py ___ Python tracker ___ ___ Python-bugs-list

[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2021-05-05 Thread Hasan
Change by Hasan : Added file: https://bugs.python.org/file50019/test_plistlib_plutil.py ___ Python tracker ___ ___ Python-bugs-list mailing

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

2021-05-05 Thread Hasan
Change by Hasan : Removed file: https://bugs.python.org/file50017/test_plistlib_plutil.py ___ Python tracker ___ ___ Python-bugs-list

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

2021-05-05 Thread Hasan
Change by Hasan : Added file: https://bugs.python.org/file50018/test_plistlib_plutil.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is only backported to 3.10 and not 3.9 because the fix recommendations were only added in 3.10. If the code difference became a problem, this could be backported because the roundabout method for name and attribute errors would work in 3.9. --

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

2021-05-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Stephen, With the example, I couldn't reproduce the problem with curl 7.65.3 That said, I do recognize that this change is a positive improvement, but I cannot see this a bug-fix (and for client misbehavior, which I couldn't verify). To take a call, I

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

2021-05-05 Thread Benjamin Sergeant
Benjamin Sergeant added the comment: type Header struct { Comment string// comment Extra []byte// "extra data" ModTime time.Time // modification time Namestring// file name OS byte // operating system type } This is what the header/extra things

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

2021-05-05 Thread Benjamin Sergeant
Benjamin Sergeant added the comment: There is a comment field too which would be nice to support. The Go gzip module has a Header class that describe all the metadata. I see in 3.8 mtime was made configurable, so hopefully we can add comment and extra.

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

2021-05-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 60ba0b68470a584103e28958d91e93a6db37ec92 by Miss Islington (bot) in branch '3.10': bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (GH-25931)

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

2021-05-05 Thread Hasan
Change by Hasan : Added file: https://bugs.python.org/file50017/test_plistlib_plutil.py ___ Python tracker ___ ___ Python-bugs-list mailing

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

2021-05-05 Thread miss-islington
miss-islington added the comment: New changeset ea9327036680acc92d9f89eaf6f6a54d2f8d78d9 by Miss Islington (bot) in branch '3.9': bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916)

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

2021-05-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 24f1d1a8a2c4aa58a606b4b6d5fa4305a3b91705 by Miss Islington (bot) in branch '3.10': bpo-43882 Remove the newline, and tab early. From query and fragments. (GH-25936)

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

2021-05-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks guangli dong (leveryd)! This is in and the 3.10-3.6 PRs should automerge (thru 3.9) after the CI runs, or be merged by the release managers (3.6-3.8). -- resolution: -> fixed stage: patch review -> commit review status: open -> closed

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

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

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

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

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

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

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

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

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

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

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

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

[issue36515] unaligned memory access in the _sha3 extension

2021-05-05 Thread miss-islington
miss-islington added the comment: New changeset 3b2a45ff95a68acc8276b37678c98740a232f6d4 by Miss Islington (bot) in branch '3.10': bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927) https://github.com/python/cpython/commit/3b2a45ff95a68acc8276b37678c98740a232f6d4

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

2021-05-05 Thread William Pickard
William Pickard added the comment: Do you mind ticking the box, "Run as Administrator" in the Compatibility tab for python.exe and try winreg again? -- nosy: +WildCard65 ___ Python tracker

[issue44051] Virtualalloc wrong return type

2021-05-05 Thread Eryk Sun
Eryk Sun added the comment: > ctypes.windll.kernel32.VirtuAlloc function return by default > a ctypes.c_long In Windows, ctypes.c_int is an alias for ctypes.c_long, which is a signed 32-bit integer. This is the default conversion type for the integer parameters of an FFI (foreign function

[issue36515] unaligned memory access in the _sha3 extension

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

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

2021-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Steve: I think the point of discussing whether "pip install" can be used to manage system wide packages is moot. It's been like that for ages, not only for pip, but also for the distutils setup.py install process and the old Makefile.pre.in approach before

[issue44030] Markup with_traceback code example

2021-05-05 Thread Miguel Brito
Miguel Brito added the comment: If we make it a code snippet it works. Just adding a `::` after the paragraph. Here's a print on Firefox locally: https://imgur.com/a/g2vsqf2 I created a PR for that if you think it's a good solution, feel free to merge :) --

[issue44030] Markup with_traceback code example

2021-05-05 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch nosy: +miguendes nosy_count: 2.0 -> 3.0 pull_requests: +24596 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25929 ___ Python tracker

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2021-05-05 Thread Mateusz Loskot
Change by Mateusz Loskot : -- nosy: +mloskot ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36515] unaligned memory access in the _sha3 extension

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

[issue44051] Virtualalloc wrong return type

2021-05-05 Thread Steve Dower
Steve Dower added the comment: The return type of a ctypes function is set by whoever is accessing it. If that is you, then you should do: ctypes.windll.kernel32.VirtualAlloc.restype = ctypes.c_void_p If it's not you, can you point out which code is getting this wrong? ctypes defaults to

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

2021-05-05 Thread Steve Dower
Steve Dower added the comment: >> The best option for restricting the import while still having it be a Python >> import is to find the file (if it's present in the expected location under >> sys.whatever), and then use importlib to import it: >>

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

2021-05-05 Thread Paul
Paul added the comment: *** Again, I am using a LOCAL ADMINISTRATIVE account. *** "Actually behind the scenes, winreg uses win32api which doesn't allow setting HKEY_LOCAL_MACHINE keys for unprivileged users. Running the application in admin mode may work because at that point your

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

2021-05-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: Mike: There may be multiple ways to read that WHATWG recommendation? The linked to section is about implementing a state machine for parsing a URL into parts safely. But that may not imply that anything that passed through that state machine should be

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

2021-05-05 Thread Eryk Sun
Eryk Sun added the comment: > There is no reason why a user should be able to write to > HKCU but not HKLM. Modifying system keys is limited to SYSTEM, administrators, and various privileged accounts and services such as TrustedInstaller. Standard users are not allowed to modify system

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

2021-05-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: The bug: Our http client can get stuck infinitely reading len(line) < 64k lines after receiving a '100 Continue' http response. So yes, this could lead to our client being a bandwidth sink for anyone in control of a server. Clear issue: That's a denial

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

2021-05-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith title: "urllib" will result to deny of service -> urllib http client possible infinite loop on a 100 Continue response versions: +Python 3.10, Python 3.11, Python 3.9

[issue40617] sqlite3: expose sqlite3_create_window_function

2021-05-05 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add create_window_function() to sqlite3.Connection ___ Python tracker

[issue37903] IDLE Shell sidebar.

2021-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: As described above in msg392163, the other fix is to put the prompt on a line by itself. I hoped to get a switch between fixes into b1 but ran out of time and energy. I intend to have in in the next, along with other improvements. --

[issue44050] Exceptions in a subinterpreter are changed by another subinterpreter

2021-05-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> eric.snow nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44043] 3.10 b1 armhf Bus Error in hashlib test: test_gil

2021-05-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- dependencies: +unaligned memory access in the _sha3 extension ___ Python tracker ___ ___

[issue36515] unaligned memory access in the _sha3 extension

2021-05-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +24594 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25927 ___ Python tracker ___

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

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > I can also add, modify, and delete Registry entries in HKLM (or any other > hive) by hand with no problem, so it is definitely not a permissions issue. When you run regedit you get an admin pop up, right? Like that also run python in admin mode. > I can

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

2021-05-05 Thread Mike Lissner
Mike Lissner added the comment: > I'd wonder how to pass through valid exceptions without urlparse raising > something. Oops, meant to say "valid URLs", not valid exceptions, sorry. -- ___ Python tracker

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

2021-05-05 Thread Mike Lissner
Mike Lissner added the comment: > Instead of the patches as you see them, we could've raised an exception. In my mind the definition of a valid URL is what browsers recognize. They're moving towards the WHATWG definition, and so too must we. If we make python raise an exception when a URL

[issue36515] unaligned memory access in the _sha3 extension

2021-05-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: that patch looks fine, i'll turn it into a PR. -- assignee: christian.heimes -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker

[issue36515] unaligned memory access in the _sha3 extension

2021-05-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> christian.heimes versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-05 Thread miss-islington
miss-islington added the comment: New changeset 8f3ef457ad286e73f272dadec8b98d2ea3a6ec72 by Miss Islington (bot) in branch '3.10': bpo-43795: Mark PyCodec_Unregister as a function, not data, in stable ABI (GH-25920)

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

2021-05-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Florian! Indeed, I'm glad you have tests for this. (I expect anyone writing their own validation code will have such tests) Making urlsplit raise an exception where it never has before has other consequences: In CPython's own test suite

[issue37903] IDLE Shell sidebar.

2021-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is it possible to add a Settings option under the General tab to switch between the sidebar mode and traditional mode? -- ___ Python tracker

[issue35753] Importing call from unittest.mock directly causes ValueError

2021-05-05 Thread Łukasz Langa
Łukasz Langa added the comment: Fixed in 3.10 and 3.11, thanks Albert for your patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 -Python 3.7 ___ Python tracker

[issue35753] Importing call from unittest.mock directly causes ValueError

2021-05-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 10d6f6bfd749c0e7da51a96f53ca326c336f7a00 by Miss Islington (bot) in branch '3.10': bpo-35753: Fix crash in doctest with unwrap-able functions (GH-22981) (#25926) https://github.com/python/cpython/commit/10d6f6bfd749c0e7da51a96f53ca326c336f7a00

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Filipe Laíns
Filipe Laíns added the comment: That always depends on the way distros patch Python, though all the major distros I know will add their schemes to sysconfig, which works what that approach. But yeah, that is what you probably want to be doing :) --

[issue35753] Importing call from unittest.mock directly causes ValueError

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

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24592 pull_request: https://github.com/python/cpython/pull/25925 ___ Python tracker

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

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

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

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

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

2021-05-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 515a7bc4e13645d0945b46a8e1d9102b918cd407 by Miss Islington (bot) in branch '3.8': [3.8] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595) (#25726)

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

2021-05-05 Thread Paul
Paul added the comment: Clarification: User is a local admin on the machine, and UAC is disabled as well. I can also add, modify, and delete Registry entries in HKLM (or any other hive) by hand with no problem, so it is definitely not a permissions issue. I can also write, update, modify,

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

2021-05-05 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +24589 pull_request: https://github.com/python/cpython/pull/25921 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Alright so to get all the package paths, included distro-managed ones would be this right? for scheme in sysconfig.get_scheme_names(): for name in ['purelib', 'platlib']: sysconfig.get_path(name, scheme) --

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

2021-05-05 Thread Filipe Laíns
Filipe Laíns added the comment: We cannot change how `sudo pip install` fundamentally works because there are too many people depending on it, and even if we could, this is not the place :P I think we went a little off-topic here, so let's get back to the discussion. > The best option for

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Filipe Laíns
Filipe Laíns added the comment: If you are relying on the value of distutils.sysconfig.get_python_lib() as you shown in your system, you probably don't want to. That directory (dist-packages) should be for Debian provided packages only, so moving to sysconfig.get_path() would be a good

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-05 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24588 pull_request: https://github.com/python/cpython/pull/25920 ___ Python tracker ___

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

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

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

2021-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch nosy: +corona10 nosy_count: 5.0 -> 6.0 pull_requests: +24587 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25918 ___ Python tracker

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: That seems fine, tho for some of distros that do lots of python customizations (tried the docker ubuntu image for 18.04.3) it get a bit strange: Python 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or

[issue44051] Virtualalloc wrong return type

2021-05-05 Thread baptistecrepin
New submission from baptistecrepin : The ctypes.windll.kernel32.VirtuAlloc function return by default a ctypes.c_long but on 64bits systems memory addresses can be higher so it should be a ctypes.c_uint64 or ctypes.c_void_p. -- ___ Python tracker

[issue44051] Virtualalloc wrong return type

2021-05-05 Thread baptistecrepin
Change by baptistecrepin : -- components: Windows nosy: baptistecrepin, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Virtualalloc wrong return type type: behavior versions: Python 3.9 ___

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Filipe Laíns
Filipe Laíns added the comment: I believe sysconfig.get_path('purelib') and sysconfig.get_path('platlib') should work for you. > sysconfig.get_path('purelib') /usr/lib/python3.9/site-packages > sysconfig.get_path('platlib') /usr/lib/python3.9/site-packages (here it's the same path, but it is

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Hello everyone, How are we supposed to use get_python_lib now (a function that returned the site-packages location)? `from setuptools._distutils.sysconfig import get_python_lib` doesn't really seem like the right solution and the sysconfig stdlib

[issue44043] 3.10 b1 armhf Bus Error in hashlib test: test_gil

2021-05-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Christian, could you look into that patch? -- ___ Python tracker ___ ___ Python-bugs-list

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The errors are occurring because the code before these commits checked whether those algorithms were present or not. If an algorithm was not present it was not tested. The new code doesn't check and therefore if even one of the algorithm modules are not

[issue43977] Implement the latest semantics for PEP 634 for matching collections

2021-05-05 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 2.0 -> 3.0 pull_requests: +24586 pull_request: https://github.com/python/cpython/pull/25917 ___ Python tracker ___

[issue44039] Duplicated assignment in Modules/_randommodule.c

2021-05-05 Thread Brad Larsen
Brad Larsen added the comment: > Just curious, how did you find this? I am working on some new CodeQL queries (https://securitylab.github.com/tools/codeql/) and saw a warning about this self-assignment from one of the existing queries. LGTM apparently regularly scans cpython:

[issue44026] IDLE: print "Did you mean?" for AttributeError and NameError

2021-05-05 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44050] Exceptions in a subinterpreter are changed by another subinterpreter

2021-05-05 Thread Ken Jin
Change by Ken Jin : -- keywords: +3.9regression nosy: +christian.heimes, lukasz.langa, vstinner ___ Python tracker ___ ___

[issue44050] Exceptions in a subinterpreter are changed by another subinterpreter

2021-05-05 Thread Trygve Aaberge
Trygve Aaberge added the comment: And here are the bug reports for two Python scripts that are affected by this issue: https://github.com/wee-slack/wee-slack/issues/812 https://github.com/poljar/weechat-matrix/issues/248 -- ___ Python tracker

[issue44050] Exceptions in a subinterpreter are changed by another subinterpreter

2021-05-05 Thread Trygve Aaberge
Trygve Aaberge added the comment: Here is the Python script that the C program to reproduce the issue runs. -- Added file: https://bugs.python.org/file50016/subinterpreter_ssl_issue.py ___ Python tracker

[issue44050] Exceptions in a subinterpreter are changed by another subinterpreter

2021-05-05 Thread Trygve Aaberge
New submission from Trygve Aaberge : This issue is a regression in Python 3.9. It was recently fixed in main/3.10, but I'm opening this issue to request that it is fixed in 3.9 as well since it breaks certain Python scripts running in WeeChat. I have a C application which is using the

[issue43950] Include column offsets for bytecode instructions

2021-05-05 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44043] 3.10 b1 armhf Bus Error in hashlib test: test_gil

2021-05-05 Thread Anthony Sottile
Anthony Sottile added the comment: oddly enough, when I add `-X faulthandler` it passes ___ I did some research on the error message and it looks like the ubuntu maintainers have found the same thing and reported it here: https://bugs.python.org/issue36445 this points at (intentional?)

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

2021-05-05 Thread Florian Apolloner
Florian Apolloner added the comment: Thank you for the kind words Michał. We (Django) are exactly in the position that you describe. Our validation, at least for now has to stay strict, exactly to prevent fallout further down the road (see

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Dong-hee Na
Dong-hee Na added the comment: > Also, on a minor note, we use a restricted set of c99 supported by all > compilers so we would need to check if this is supported in all of them Ah, I notice that msvc does not support VLA (Sorry, I am not using Windows machine for 5 years +) Using a C99/C11

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the suggestion! Unfortunately I am not very convinced since we already have the self imposed limitation for the maximum size of the string (this is to limit the execution time and memory) so there is no point of allowing bigger buffers.

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2021-05-05 Thread Géry
Change by Géry : -- title: Improve the error message for non-string second arguments passed to the built-in functions getattr and hasattr -> Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Dong-hee Na
New submission from Dong-hee Na : I had a chance to read Python/suggestion.c and I can notice that we use the static declared size of the array. Since we live in the C99 era and the CPython codebase already uses C99(struct initialization is a good example), how about using the C99 feature if

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

2021-05-05 Thread Gen Xu
Gen Xu added the comment: Looks like it is caused by the httplib not limiting total header size after receiving 100. Added a counter for that to be same size as _MAXLINE=65536. -- versions: -Python 3.7 ___ Python tracker

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

2021-05-05 Thread Gen Xu
Gen Xu added the comment: Added a possible PR. Review will be appreicated. -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2021-05-05 Thread Gen Xu
Change by Gen Xu : -- keywords: +patch nosy: +gen-xu nosy_count: 1.0 -> 2.0 pull_requests: +24585 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25916 ___ Python tracker

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-05-05 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : The buildbot started experiencing some failures. First after https://github.com/python/cpython/commit/ddbef71a2c166a5d5dd168e26493973053a953d6 this test started failing with: ==

[issue39934] Fatal Python error "XXX block stack overflow" when exception stacks >10

2021-05-05 Thread Irit Katriel
Irit Katriel added the comment: This was fixed in 3.9+ and 3.8 is in security fix now, so closing. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44047] [sqlite3] remove unused argument from _pysqlite_seterror()

2021-05-05 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +24584 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25915 ___ Python tracker

[issue44047] [sqlite3] remove unused argument from _pysqlite_seterror()

2021-05-05 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Suggesting to remove the statement pointer argument from _pysqlite_seterror(), as it has been unused since commit 525269430a3f9fbb7287e4bb6b365ac216004980. -- components: Extension Modules messages: 393001 nosy: berker.peksag,

[issue44043] 3.10 b1 armhf Bus Error in hashlib test: test_gil

2021-05-05 Thread Miro Hrončok
Miro Hrončok added the comment: In Fedora, our build passed on Fedoras 32, 33, 34, 35. We have: F32: gcc 10.2.1, openssl 1.1.1k F33: gcc 10.3.1, openssl 1.1.1k F34: gcc 11.1.1, openssl 1.1.1k F35: gcc 11.1.1, openssl 1.1.1k Let me know how can I help to debug the difference in environment

[issue41756] Do not always use exceptions to return result from coroutine

2021-05-05 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

  1   2   >