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

[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

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

[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

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

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

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

[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

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

[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 : -- 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: +24601 pull_request: https://github.com/python/cpython/pull/25934 ___ 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: +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 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 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) https://github.com/python/cpython/commit/24f1d1a8a2c4aa58a606b4b6d5fa4305a3b91

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

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

[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. https://golang.org/pkg/compress/gzip/#H

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

[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

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

[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

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

[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

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

[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

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

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

[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

[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: Ok. I tested it. And I'm now completely sure that you're not running in Administrator mode. I'll give you the steps to solve this problem but first of all where are you running this code from, IDLE, Python or any other IDE? How to run in admin mode depends

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

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

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

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

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

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

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

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

[issue44052] patch object as argument should be explicit

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

[issue36515] unaligned memory access in the _sha3 extension

2021-05-05 Thread Christian Heimes
Christian Heimes added the comment: New changeset ce47addfb6f176fad053431b537b77a5f170765e by Miss Islington (bot) in branch '3.9': [3.9] bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927) (GH-25928) https://github.com/python/cpython/commit/ce47addfb6f176fad053431b537b77a5

[issue36515] unaligned memory access in the _sha3 extension

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

<    1   2