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

2021-05-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue44044] ConfigParser: cannot link to ConfigParser.optionxform(option)

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: No there's a hyperlink. See here https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.optionxform. There's two duplicate definitions of ConfigParser.optionxform in configparser.html. One gives examples, the other one gives definitio

[issue44044] ConfigParser: cannot link to ConfigParser.optionxform(option)

2021-05-05 Thread Jürgen Gmach
Jürgen Gmach added the comment: Shreyan Avigyan, thanks for your feedback, but you are linking to the wrong section. And yes I know, there are two sections describing `optionxform`, which is the root cause for this problem in the first place. Anyway, I wanted to reference the section which I

[issue44044] ConfigParser: cannot link to ConfigParser.optionxform(option)

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: If that's the problem then what about merging the two sections together? -- ___ 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 Paul
New submission from Paul : DETAILS: "[WinError 5] Access is denied" error is thrown when user attempts to use a different Registry hive other than HKEY_CURRENT_USER. The first example below will demonstrate that the code snippet works just fine and is implemented correctly. However, when yo

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

2021-05-05 Thread Christian Heimes
Christian Heimes added the comment: I have talked to our Fedora release engineers. They don't see any issues with armv7hl builds of Python 3.10.0b1. All tests are passing. https://koji.fedoraproject.org/koji/taskinfo?taskID=67234161 Ubuntu's armhf and Fedora's armv7hl both have the platform

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

2021-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.05.2021 22:58, Steve Dower wrote: >> "pip install as root" will need to continue to work and thus distros >> need to get a way to make sure that it doesn't corrupt the system >> installed packages > > Excuse my ignorance, but does "as root" imply tha

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

2021-05-05 Thread PEAR
PEAR added the comment: Most probably related: https://www.ibm.com/support/pages/apar/IJ28891 -- ___ Python tracker ___ ___ Python-

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

2021-05-05 Thread Christian Heimes
Christian Heimes added the comment: > "as root" imply that there's no user site-packages directory at all ^ Steve is talking about user site-packages, not global site-packages directory. -- nosy: +christian.heimes ___

[issue44040] Update broken link in pathlib source

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

[issue44040] Update broken link in pathlib source

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

[issue44040] Update broken link in pathlib source

2021-05-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue33927] Allow json.tool to have identical infile and outfile

2021-05-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2021-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.05.2021 10:01, Christian Heimes wrote: > >> "as root" imply that there's no user site-packages directory at all > ^ > > Steve is talking about user site-packages, not global site-packages directory. You me

[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: Is it working if you run, whatever application you're running python on, in admin mode? -- nosy: +shreyanavigyan ___ Python tracker ___ ___

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

2021-05-05 Thread Christian Heimes
Christian Heimes added the comment: I mean that Steve and you are talking about different things. Neither Steve nor you or I are are Linux distro packaging experts. I suggest that we listen to the expertise of downstream packagers like Filipe or Miro. They deal with packaging on a daily basi

[issue44044] ConfigParser: cannot link to ConfigParser.optionxform(option)

2021-05-05 Thread Jürgen Gmach
Jürgen Gmach added the comment: > If that's the problem then what about merging the two sections together? That would be one solution, which I suggested in my initial comment: > Looks like a possible fix to this problem would involve a major restructuring > of the configparser documentation,

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

2021-05-05 Thread E. Paine
Change by E. Paine : -- keywords: +patch nosy: +epaine nosy_count: 4.0 -> 5.0 pull_requests: +24581 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25912 ___ Python tracker __

[issue44040] Update broken link in pathlib source

2021-05-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset bc8b93c9a9fd4faf942cdbaba3e1e0440c594e28 by Miss Islington (bot) in branch '3.9': bpo-44040: Update broken link in pathlib source (GH-25905) (GH-25911) https://github.com/python/cpython/commit/bc8b93c9a9fd4faf942cdbaba3e1e0440c594e28 -

[issue44040] Update broken link in pathlib source

2021-05-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset ce4fee210bb604726e5da0ff15952a60c2098f88 by Miss Islington (bot) in branch '3.10': bpo-44040: Update broken link in pathlib source (GH-25905) (GH-25910) https://github.com/python/cpython/commit/ce4fee210bb604726e5da0ff15952a60c2098f88

[issue44040] Update broken link in pathlib source

2021-05-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your contribution, I have merged your PR in main and backported to 3.10 (future stable) and 3.9 (bugfix). -- ___ Python tracker __

[issue44040] Update broken link in pathlib source

2021-05-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ 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: On 05.05.2021 10:29, Christian Heimes wrote: > > I mean that Steve and you are talking about different things. Could be. I was addressing the point Steve made about not allowing or making it hard to run "pip install" as root user. > Neither Steve nor you

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

2021-05-05 Thread Michał Górny
Michał Górny added the comment: In my opinion, raising an exception would have been safer. Botocore and django do precisely what you say — provide a validator. To make this validator easier, they do the validation on splitted up URL parts. I disagree with the premise that they were stupid to

[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: Given that this happens in hashlib, could this be related to the OpenSSL version? -- ___ Python tracker ___ _

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

2021-05-05 Thread Christian Heimes
Christian Heimes added the comment: That's possible. I suspect it's related to test_gil itself. Hash providers don't release the GIL for inputs < 2048 bytes. Hashing of small inputs is faster than releasing and re-acquiring the GIL. For inputs >= 2048 hashlib creates a per-object lock and r

[issue25872] multithreading traceback KeyError when modifying file

2021-05-05 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 8.0 -> 9.0 pull_requests: +24582 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/25913 ___ 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: 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 application getting admin privileges but it also may not

[issue28874] test_logging fails and freezes

2021-05-05 Thread Nak
Nak added the comment: And the day came... Thank you very much wim.glenn I had this issue when building python 3.6.4 -- nosy: +NaKroTeK ___ Python tracker ___ ___

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

2021-05-05 Thread Ken Jin
Change by Ken Jin : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2021-05-05 Thread Kerwin(Kaihui) Sun
Change by Kerwin(Kaihui) Sun : -- nosy: +00Kai0 nosy_count: 5.0 -> 6.0 pull_requests: +24583 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25914 ___ Python tracker __

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

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

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

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

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

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

[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

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

[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

[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

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

[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 Dong-hee Na
Change by Dong-hee Na : -- resolution: -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

[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 https://github.com/django/django/pull/14349#pullreque

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

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

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

[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
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 Ken Jin
Change by Ken Jin : -- keywords: +3.9regression nosy: +christian.heimes, lukasz.langa, vstinner ___ Python tracker ___ ___ Python-bu

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

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

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

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

[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

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

[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

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

[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

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

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

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

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

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

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

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

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

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

[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 miss-islington
Change by miss-islington : -- pull_requests: +24590 pull_request: https://github.com/python/cpython/pull/25923 ___ 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 _

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

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

[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

[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

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

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

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

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

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

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

[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

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

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

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

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

[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

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

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

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

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

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

[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: >> https://docs.python.org/3/library/importlib.html

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

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

  1   2   >