[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-06-30 Thread Savage Hood
Change by Savage Hood : -- assignee: -> christian.heimes components: +Installation, Interpreter Core, Library (Lib), Windows, XML, ctypes, email nosy: +barry, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-06-30 Thread miss-islington
miss-islington added the comment: New changeset 94a4136c8eba349dc7eebe561ddaedbd0a89eb91 by Miss Islington (bot) in branch '3.10': bpo-43425: Update _osx_support not to use distutils.log (GH-26968) https://github.com/python/cpython/commit/94a4136c8eba349dc7eebe561ddaedbd0a89eb91 --

[issue43770] Rework C types initialization

2021-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset dd3adc013b21ec1338bb5fea2e2c04a4fc650306 by Victor Stinner in branch 'main': bpo-43770: Cleanup _PyObject_GetMethod() (GH-26946) https://github.com/python/cpython/commit/dd3adc013b21ec1338bb5fea2e2c04a4fc650306 --

[issue32732] LoggingAdapter ignores extra kwargs of Logger#log()

2021-06-30 Thread Samuel Henrique
Samuel Henrique added the comment: Hello Vinay Sajip, I would like to kindly ask you to please reconsider and give your thoughts on my description of the issue here. Let me try to work based on your last reply: > ...has been around since Jan 2008, and it seems that no one in that time has >

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +25541 pull_request: https://github.com/python/cpython/pull/26978 ___ Python tracker ___

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-06-30 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset c8979f780e4b7d6db5693cb26a2956cc785abb48 by Dong-hee Na in branch 'main': bpo-43425: Update _osx_support not to use distutils.log (GH-26968) https://github.com/python/cpython/commit/c8979f780e4b7d6db5693cb26a2956cc785abb48 --

[issue44531] Add _PyType_AllocNoTrack() function: allocate without tracking in the GC

2021-06-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 818628c2da99ba0376313971816d472c65c9a9fc by Victor Stinner in branch 'main': bpo-44531: Add _PyType_AllocNoTrack() function (GH-26947) https://github.com/python/cpython/commit/818628c2da99ba0376313971816d472c65c9a9fc --

[issue43412] object.h -Wcast-qual warning

2021-06-30 Thread STINNER Victor
STINNER Victor added the comment: > Duplicated by https://bugs.python.org/issue44378, which has a fix merged. Right. I close the issue as a duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Py_IS_TYPE(): cast discards ‘const’ qualifier

[issue44313] Generate LOAD_ATTR+CALL_FUNCTION instead of LOAD_METHOD+CALL_METHOD for imports

2021-06-30 Thread Mark Shannon
Mark Shannon added the comment: New changeset 1b28187a0e3e914ee48de8032cbba0a965dd5563 by Batuhan Taskaya in branch 'main': bpo-44313: generate LOAD_ATTR/CALL_FUNCTION for top-level imported objects (GH-26677) https://github.com/python/cpython/commit/1b28187a0e3e914ee48de8032cbba0a965dd5563

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-30 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Irit. Reviewing now... -- assignee: -> jaraco ___ Python tracker ___ ___

[issue39846] Register .whl as a unpack format in shutil unpack

2021-06-30 Thread Dominic Davis-Foster
Dominic Davis-Foster added the comment: I have run into this myself and was surprised unpack_archive didn't support wheels. I would like to see support added, and don't mind doing the work myself. That said, I can see there being an issue with the number of supported zip-based formats

[issue33140] shutil.chown should not be defined in Windows

2021-06-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: Steve: makes sense, I closed the PR; thanks for looking at this and taking the time to explain! -- ___ Python tracker ___

[issue33140] shutil.chown should not be defined in Windows

2021-06-30 Thread Steve Dower
Steve Dower added the comment: I agree that's theoretically how it should go, but we've had enough examples of undocumented/buggy behaviour where the fix was worse than the bug (to the point where we brought back an undocumented C field that was deprecated in 3.0 because removing it in 3.8

[issue33140] shutil.chown should not be defined in Windows

2021-06-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: Steve: it seems to me that the goal of normal deprecation process is, given that a functionality is available and documented, prepare to find a replacement for it by some future version. In this case it's documented not to be available and doesn't work so

[issue33140] shutil.chown should not be defined in Windows

2021-06-30 Thread Steve Dower
Steve Dower added the comment: We can't delete the definition without going through a deprecation process, as it will break existing code with a new exception at the point of access rather than the point of use. At best, we can short-circuit those errors and raise them with a more

[issue44535] Cannot build in VS 2022

2021-06-30 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41180] marshal load bypass code.__new__ audit event

2021-06-30 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44535] Cannot build in VS 2022

2021-06-30 Thread miss-islington
miss-islington added the comment: New changeset 67e394562d67cbcd0ac8114e5439494e7645b8f5 by Miss Islington (bot) in branch '3.9': bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962) https://github.com/python/cpython/commit/67e394562d67cbcd0ac8114e5439494e7645b8f5

[issue44535] Cannot build in VS 2022

2021-06-30 Thread miss-islington
miss-islington added the comment: New changeset 6843a3b9300eb80c2bf5dac7dd363dae9e6f000d by Miss Islington (bot) in branch '3.10': bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962) https://github.com/python/cpython/commit/6843a3b9300eb80c2bf5dac7dd363dae9e6f000d

[issue43412] object.h -Wcast-qual warning

2021-06-30 Thread Leif Walsh
Leif Walsh added the comment: Duplicated by https://bugs.python.org/issue44378, which has a fix merged. -- nosy: +leif.walsh ___ Python tracker ___

[issue42369] Reading ZipFile not thread-safe

2021-06-30 Thread Kevin Mehall
Kevin Mehall added the comment: I think I found the root cause of this problem and proposed a fix in https://github.com/python/cpython/pull/26974 To monkey-patch this fix on existing versions of Python, I'm using: class PatchedSharedFile(zipfile._SharedFile): def __init__(self, *args):

[issue44535] Cannot build in VS 2022

2021-06-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +25540 pull_request: https://github.com/python/cpython/pull/26976 ___ Python tracker ___

[issue44535] Cannot build in VS 2022

2021-06-30 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25539 pull_request: https://github.com/python/cpython/pull/26975 ___ Python tracker

[issue44535] Cannot build in VS 2022

2021-06-30 Thread Steve Dower
Steve Dower added the comment: New changeset d3a95c1b6eacbbbd92c294744e7ed41932f3f63e by Steve Dower in branch 'main': bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962) https://github.com/python/cpython/commit/d3a95c1b6eacbbbd92c294744e7ed41932f3f63e --

[issue42369] Reading ZipFile not thread-safe

2021-06-30 Thread Kevin Mehall
Change by Kevin Mehall : -- keywords: +patch nosy: +kevinmehall nosy_count: 5.0 -> 6.0 pull_requests: +25538 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26974 ___ Python tracker

[issue40066] Enum: modify __repr__, __str__; update docs

2021-06-30 Thread Michael Cuthbert
Michael Cuthbert added the comment: It may be helpful for the enum module to come with transitional functions like "pre310_str()" "pre310_repr()" "pre310_flag_str()" etc. so that people who are writing doctests that need to function on both < 3.10 and 3.10+ can temporarily do a

[issue33140] shutil.chown should not be defined in Windows

2021-06-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: Created the PR: https://github.com/python/cpython/pull/26973/files -- ___ Python tracker ___ ___

[issue33140] shutil.chown should not be defined in Windows

2021-06-30 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 6.0 -> 7.0 pull_requests: +25537 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26973 ___ Python tracker

[issue41180] marshal load bypass code.__new__ audit event

2021-06-30 Thread Steve Dower
Steve Dower added the comment: New changeset 95919b0d2744adb87acf696ae1de905cf02a95a6 by Steve Dower in branch 'main': bpo-41180: Fixes documentation to specify correct event name and add versionchanged (GH-26972)

[issue41180] marshal load bypass code.__new__ audit event

2021-06-30 Thread Steve Dower
Steve Dower added the comment: New changeset 863e3d5c7e037b24b8294b041ed7686b522973d8 by Steve Dower in branch '3.9': bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26971)

[issue41180] marshal load bypass code.__new__ audit event

2021-06-30 Thread Steve Dower
Steve Dower added the comment: New changeset a5764d3d96341441d3f70fb5c96a82610a3f4842 by Steve Dower in branch '3.10': bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26970)

[issue44541] collections.abc.Sequence index implementation

2021-06-30 Thread Ken Jin
Ken Jin added the comment: Closing this issue since OP(Maciej) has marked it as "not a bug". -- nosy: +kj stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41180] marshal load bypass code.__new__ audit event

2021-06-30 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +25536 pull_request: https://github.com/python/cpython/pull/26972 ___ Python tracker ___

[issue41180] marshal load bypass code.__new__ audit event

2021-06-30 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +25535 pull_request: https://github.com/python/cpython/pull/26971 ___ Python tracker ___

[issue41180] marshal load bypass code.__new__ audit event

2021-06-30 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +25534 pull_request: https://github.com/python/cpython/pull/26970 ___ Python tracker ___

[issue44541] collections.abc.Sequence index implementation

2021-06-30 Thread Maciej Kopeć
Maciej Kopeć added the comment: Sorry for the hastily posted issue, when stop is not given this should work properly, and since stop is exclusive in python, this shall be expected behaviour. -- resolution: -> not a bug ___ Python tracker

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-06-30 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +25533 pull_request: https://github.com/python/cpython/pull/26969 ___ Python tracker ___

[issue44541] collections.abc.Sequence index implementation

2021-06-30 Thread Maciej Kopeć
New submission from Maciej Kopeć : Hello, https://github.com/python/cpython/blob/3.9/Lib/_collections_abc.py#L1012 Shouldn't the loop condition be i <= 0 not i < 0? The implementation now is causing not to search in 1-element sequences, since it raises ValueError. Please let me know if this

[issue41180] marshal load bypass code.__new__ audit event

2021-06-30 Thread Steve Dower
Steve Dower added the comment: New changeset 139de04518bd98a975b7c98ab8a38e570dc585e4 by Steve Dower in branch 'main': bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26961)

[issue44538] ast.Slice 3.9.6 documentation bug

2021-06-30 Thread Tim
Tim added the comment: I was using 3.8. I followed the same steps on 3.9 and confirmed it worked - closing now. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-06-30 Thread Safihre
Safihre added the comment: Is anyone available to give feedback on the remaining questions/problems in the PR? I don't want to be pushy and if it's only changed in 3.11, I understand, but just hoping for some progress :) Also willing to dive into it myself, but not a network/python-core

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-06-30 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +25532 pull_request: https://github.com/python/cpython/pull/26968 ___ Python tracker ___

[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

2021-06-30 Thread qdinar
qdinar added the comment: Şahin Kureta said: "I know it is not finalized and released yet but are you going to implement Version 14.0.0 of the Unicode Standard? It finally solves the issue of Turkish lower/upper case 'I' and 'i'." . this looks like that unicode version 14 has some new things

[issue44524] __name__ attribute in typing module

2021-06-30 Thread Lars
Lars added the comment: I have been doing some research, but note that I don't have much experience with the typing module. That said, there seem to be 2 main cases: - '_SpecialForm': with instances Any, Union, etc. - '_BaseGenericAlias'/'_SpecialGenericAlias': base classes collections

[issue43770] Rework C types initialization

2021-06-30 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34798] pprint ignores the compact parameter for dicts

2021-06-30 Thread Irit Katriel
Irit Katriel added the comment: I made PR26967 to break up the paragraph about the constructor params so that it's easier to read, and also added emphasis around the "sequence" point. -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8

[issue34798] pprint ignores the compact parameter for dicts

2021-06-30 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +25531 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26967 ___ Python tracker ___

[issue44540] venv: activate.bat fails for venv with special characters in PATH

2021-06-30 Thread MB113
New submission from MB113 : If your virtual env Scripts folder is in a path with a special character (for batch-scripts) it will give this error: The system cannot find the path specified. In my case it was a '&' in my path. Now I see that the fix from specifically this issue:

[issue24499] Python Installer text piles up during installation process

2021-06-30 Thread Irit Katriel
Irit Katriel added the comment: Please create a new issue if you are still seeing this on a current version. -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker

[issue42238] Deprecate suspicious.py?

2021-06-30 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +25530 pull_request: https://github.com/python/cpython/pull/26966 ___ Python tracker ___

[issue42238] Deprecate suspicious.py?

2021-06-30 Thread Julien Palard
Julien Palard added the comment: Another true positive: ... versionchanged:: 3.11 from : 6cb145d23f5cf69b6d7414877d142747cd3d134c / https://github.com/python/cpython/pull/26820 I also think it can be implemented in rstlint. -- ___ Python

[issue44539] Imghdr JPG Quantized

2021-06-30 Thread Mohamad Mansour
Change by Mohamad Mansour : -- keywords: +patch pull_requests: +25529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26964 ___ Python tracker ___

[issue25653] ctypes+callbacks+fork+selinux = crash

2021-06-30 Thread Petr Viktorin
Petr Viktorin added the comment: Here's a simpler reproducer. -- nosy: +petr.viktorin Added file: https://bugs.python.org/file50134/y.py ___ Python tracker ___

[issue44539] Imghdr JPG Quantized

2021-06-30 Thread Mohamad Mansour
Change by Mohamad Mansour : -- components: +Library (Lib) -C API ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42514] Relocatable framework for macOS

2021-06-30 Thread macmule
macmule added the comment: Just wondering if any movement on this etc. This is something I've been struggling with too, and have attempted to overcome via Greg's project to no avail. -- nosy: +macmule ___ Python tracker

[issue44539] Imghdr JPG Quantized

2021-06-30 Thread Mohamad Mansour
New submission from Mohamad Mansour : Previous method to check JPG images was using the following command (h[6:10] in (b'JFIF', b'Exif')) However, its not always the case as some might start with b'\xff\xd8\xff\xdb' header. Reference: https://www.digicamsoft.com/itu/itu-t81-36.html

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-06-30 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: @Ken I will pick up this issue, thanks for asking. -- ___ Python tracker ___

[issue44538] ast.Slice 3.9.6 documentation bug

2021-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What Python version did you tried? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue43232] Prohibit previously deprecated operations on asyncio.trsock.TransportSocket

2021-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1d08d85cbe49c0748a8ee03aec31f89ab8e81496 by Illia Volochii in branch 'main': bpo-43232: Remove previously deprecated methods on TransportSocket (GH-24538) https://github.com/python/cpython/commit/1d08d85cbe49c0748a8ee03aec31f89ab8e81496

[issue43232] Prohibit previously deprecated operations on asyncio.trsock.TransportSocket

2021-06-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___