[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-02 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.10, Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45093] Add method to compare dicts accounting for order

2021-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For tests it can be more convenient to use list(d1.items()) == list(d2.items()) because it can produce better report on failure. You can add a simple helper function if you use it multiple times in tests. -- nosy: +serhiy.storchaka __

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-02 Thread miss-islington
miss-islington added the comment: New changeset 79e9f5a58427c73dc546cb571819d50defe2e14f by Miss Islington (bot) in branch '3.10': bpo-45081: Fix __init__ method generation when inheriting from Protocol (GH-28121) https://github.com/python/cpython/commit/79e9f5a58427c73dc546cb571819d50defe2e

[issue45092] Make set ordered like dict

2021-09-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Make set ordered ___ Python tracker ___ ___

[issue45093] Add method to compare dicts accounting for order

2021-09-02 Thread Michael Rans
Michael Rans added the comment: My use case is in testing. Currently I use an OrderedDict, but since dict introduced ordering in 3.7, I was considering switching. For my test, I need to check that the dictionary is the same both in content and order. I can indeed use your one liner, but just

[issue45093] Add method to compare dicts accounting for order

2021-09-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: What is your use-case for having dicts that differ only in order compare unequal? I can't think of any reason why I would want such a comparison, but if I did, it's a trivial one-liner: d1 == d2 and all(k1 == k2 for k1, k2 in zip(d1, d2)) -- n

[issue45092] Make set ordered like dict

2021-09-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: See #42368 Also this thread: https://mail.python.org/pipermail/python-dev/2019-February/156466.html -- nosy: +steven.daprano type: behavior -> enhancement ___ Python tracker

[issue45093] Add method to compare dicts accounting for order

2021-09-02 Thread Michael Rans
Change by Michael Rans : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue45093] Add method to compare dicts accounting for order

2021-09-02 Thread Michael Rans
New submission from Michael Rans : I suggest adding a method that allows comparing dicts taking into account the order - an ordered compare (since == does not do that). (Also for my other issue (https://bugs.python.org/issue45092) where I suggested that set be ordered to reduce confusion, the

[issue45092] Make set ordered like dict

2021-09-02 Thread Michael Rans
New submission from Michael Rans : Now that dict is ordered, it is a bit confusing that set isn't as well. I suggest making set ordered too. -- messages: 400974 nosy: mcarans priority: normal severity: normal status: open title: Make set ordered like dict type: behavior versions: Pytho

[issue45088] Coroutines & async generators disagree on the iteration protocol semantics

2021-09-02 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue44748] argparse: a bool indicating if arg was encountered

2021-09-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I want the order of priority to fall back to the defaults, > if no value is specified in the config file. And if an argument > is passed via argv, then that value should take precedence > over what is set in the config file. from collections import Chain

[issue45091] inspect.Parameter.__str__ does not include subscripted types in annotations

2021-09-02 Thread Antonio Caceres
New submission from Antonio Caceres : The __str__ method of the inspect.Parameter class in the standard library's inspect module does not include subscripted types in annotations. For example, consider the function foo(a: list[int]). When I run str(inspect.signature(foo)), I would expect the r

[issue44587] argparse BooleanOptionalAction displays default=SUPPRESS unlike other action types

2021-09-02 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue44986] Date formats in help messages of argparse

2021-09-02 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue44748] argparse: a bool indicating if arg was encountered

2021-09-02 Thread paul j3
paul j3 added the comment: Another way to play with the defaults is to use argparse.SUPPRESS. With such a default, the argument does not appear in the namespace, unless provided by the user. In [2]: p = argparse.ArgumentParser() ...: p.add_argument('--foo', default=argparse.SUPPRESS, hel

[issue44980] Clean up tests that return a value that isn't None

2021-09-02 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ __

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: I (and many others) think the error message is fine the way it is. Also, it's hard for the error to be more specific about the method it's being called on. But if you have some concrete suggestions that can be implemented, you can add them to this issue. ---

[issue31528] Let ConfigParser parse systemd units

2021-09-02 Thread Cooper Lees
Change by Cooper Lees : -- nosy: +cooperlees ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue44748] argparse: a bool indicating if arg was encountered

2021-09-02 Thread Thermi
Thermi added the comment: 1) True. That'd mean such functionality would not be usable by such a workaround though. 2) ANY setting has a default value. The output in the --help message has to, if any defaults at all are shown, be the same as the actual default values. Storing the default val

[issue44748] argparse: a bool indicating if arg was encountered

2021-09-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > then you can't show the defaults in the help message. 1) The --help option doesn't normally show defaults. 2) Why would you show defaults in help, if you're going to ignore them in favor the values in config whenever they aren't specified. If ignored o

[issue44188] ThreadPoolExecutor unbalanced semaphore count

2021-09-02 Thread Tin Tvrtković
Tin Tvrtković added the comment: I was trying to instrument one of our executors to expose some metrics, so I tried using the value of the semaphore as the number of idle threads and I noticed it was way too large. If this was fixed getting these metrics would be easier. -- nosy: +ti

[issue45090] Add pairwise to What's New in Python 3.10; mark it as new in itertools docs

2021-09-02 Thread Luciano Ramalho
New submission from Luciano Ramalho : Thanks for adding `itertools.pairwise()`! Let's make it easier to find by mentioning it in "What's New in Python 3.10" and also marking it as "New in Python 3.10" in the `itertools` module documentation. -- assignee: docs@python components: Docum

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: What about adding alert message for beginners that can stuck with that in docs? To warn others , is that good idea you think. Or it is redundant ? -- ___ Python tracker __

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: Thanks that really works. So as I understand that b''.split() != ''.split() -- resolution: -> not a bug ___ Python tracker ___ ___

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: You said: """ b''.split(',') # gives strange error message. TypeError: a bytes-like object is required, not 'str' """ It is not a strange error message. You passed in a str (the ','), and you should have passed in bytes. --

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: Moreover according Python docs : This exception may be raised by user code to indicate that an attempted operation on an object is not supported. But also the Python interpreter gives that a bytes-like object is required, not 'str' that I am already passin

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: ''.split(',') # works as it should be b''.split(',') # gives strange error message. TypeError: a bytes-like object is required, not 'str' The problem here is that message is saying that for fix error you should use bytes-like object that not a true. In rea

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Alex Zaslavskis added the comment: I am not really sure that it is working as it should be. Even with your example it gives : TypeError: a bytes-like object is required, not 'str' The problem is why error message says that bytes-like is required , when the string is required. --

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-02 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +26571 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28133 ___ Python tracker __

[issue23864] doc: issubclass without registration only works for "one-trick pony" collections ABCs.

2021-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe issue45024 is also connected? (It also seems to relate to hasattr() logic.) -- ___ Python tracker ___ __

[issue44748] argparse: a bool indicating if arg was encountered

2021-09-02 Thread Thermi
Thermi added the comment: Raymond, then you can't show the defaults in the help message. -- ___ Python tracker ___ ___ Python-bugs-

[issue44748] argparse: a bool indicating if arg was encountered

2021-09-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > With a config file loaded as part of the program, > overwrite the values loaded from the config file > if the argument was encountered in the argument vector. It seems to me that default values can already be used for this purpose: from argparse import

[issue44091] traceback & inspect modules should verify that the .py source file matches the one that the running process is using

2021-09-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW I don't remember the context that led me to just file the issue this year. The most serious frequent instances of this I remember happening were all many years ago when a less capable software distribution mechanism was in use. A scenario where I wou

[issue45089] [sqlite3] the trace callback does not raise exceptions on error

2021-09-02 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Currently, two calls can raise exceptions in the _trace_callback() in Modules/_sqlite/connection.c: 1. PyUnicode_DecodeUTF8() can raise an exception 2. PyObject_CallOneArg() — calling the user callback — can raise an exception Currently, we either Py

[issue37694] Crash when calling zipimport.zipimporter.__new__().()

2021-09-02 Thread Irit Katriel
Irit Katriel added the comment: Closing as 2.7 and 3.6 are no longer maintained, and you say the crash was gone in 3.7+. On 3.11 it indeed doesn't crash: >>> zipimport.zipimporter.__new__(zipimport.zipimporter).find_module('') :158: DeprecationWarning: zipimporter.find_module() is depreca

[issue45024] Cannot extend collections ABCs with protocol

2021-09-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs need to clarify which ABCs can satisfy isinstance() based solely on hasattr() logic and which ABCs require registration or direct subclassing. The docs should also explain why the more complex ABCs can't reliably be recognized based on the presen

[issue26375] Python 2.7.10 and 3.4.4 hang on imaplib.IMAP4_SSL()

2021-09-02 Thread Irit Katriel
Irit Katriel added the comment: Michal, is still issue still relevant? The url you mention no longer exists so I can't see if it's still reproducible: % nslookup imap.home.pl Server: 192.168.1.254 Address:192.168.1.254#53 ** server can't find imap.home.pl: NXDOMAIN

[issue45088] Coroutines & async generators disagree on the iteration protocol semantics

2021-09-02 Thread Yury Selivanov
New submission from Yury Selivanov : See this script: https://gist.github.com/1st1/eccc32991dc2798f3fa0b4050ae2461d Somehow an identity async function alters the behavior of manual iteration though the wrapped nested generator. This is a very subtle bug and I'm not even sure if this is a b

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: This is working as designed. The error is telling you that the argument to bytes.split() must be a string: >>> b''.split(',') Traceback (most recent call last): File "", line 1, in TypeError: a bytes-like object is required, not 'str' >>> b''.split(b',') [

[issue44689] ctypes.util.find_library() does not find macOS 11+ system libraries when built on older macOS systems

2021-09-02 Thread Ned Deily
Ned Deily added the comment: Thanks for the updates! >If the core developers say various cross-compiling scenarios aren't supported >build configuration any more, I'll accept that and work around the limitation >on my end. However, do note there is a significant possibility that Apple >stop

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Change by Alex Zaslavskis : Removed file: https://bugs.python.org/file50257/bug_in_python.py ___ Python tracker ___ ___ Python-bugs-list mai

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Change by Alex Zaslavskis : Added file: https://bugs.python.org/file50258/bug_in_python.py ___ Python tracker ___ ___ Python-bugs-list maili

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
Change by Alex Zaslavskis : -- type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Alex Zaslavskis
New submission from Alex Zaslavskis : If we will try to split bytes we will got quite strange error in console. Traceback (most recent call last): File "C:/Users/ProAdmin/Desktop/bug_in_python.py", line 6, in byte_message.split(",") TypeError: a bytes-like object is required, not 'str'

[issue44689] ctypes.util.find_library() does not find macOS 11+ system libraries when built on older macOS systems

2021-09-02 Thread Gregory Szorc
Gregory Szorc added the comment: I cannot reproduce this on an 11.5 Intel MacBook Pro using an 11.5 SDK targeting x86_64 10.9. However, I can reproduce on a similarly configured M1 using the same OS and SDK but cross-compiling to single arch x86_64. The issue here may reside in how configur

[issue44489] _handle_existing_loggers should respect loggers that were manually disabled

2021-09-02 Thread Vinay Sajip
Vinay Sajip added the comment: Closing, as no further feedback received on this issue. You can reopen if you have an answer to my question. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue45027] Allow basicConfig to configure any logger, not just root

2021-09-02 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks, but ... > I observe that many Python users tend to use basicConfig() even when they > would be better served by configuring only the logger(s) needed for their own > app/library. First of all, library developers should not be configuring loggers at all

[issue45079] 3.8.11 and 3.8.12 missing Windows artifacts, only tarballs - build system failed?

2021-09-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: Seems like integrating third party dependencies would be covered by integration tests as part of the automation. But if they are not available I understand it would be expensive, yes. -- ___ Python tracker

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-02 Thread Julian Fortune
Change by Julian Fortune : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue45079] 3.8.11 and 3.8.12 missing Windows artifacts, only tarballs - build system failed?

2021-09-02 Thread Steve Dower
Steve Dower added the comment: The build for Windows is mostly automated, but it's triggered and monitored by hand. The build steps are all in the source repo, and the builds themselves are public at https://dev.azure.com/Python/cpython/_build?definitionId=21, but I'm the only core dev with

[issue45086] f-string unmatched ']'

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: I think it's basically this error: >>> num] File "", line 1 num] ^ SyntaxError: unmatched ']' Although I'd have to look at it more to see why that's the error it chose to display, instead of the curly brace. -- _

[issue45082] ctypes: Deprecate c_buffer() alias to create_string_buffer()

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Victor! ✨ 🍰 ✨ -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45082] ctypes: Deprecate c_buffer() alias to create_string_buffer()

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a1e15a7a604e6f44cdaf4e106339df62eac5dc9f by Victor Stinner in branch 'main': bpo-45082: Cleanup ctypes.c_buffer alias (GH-28129) https://github.com/python/cpython/commit/a1e15a7a604e6f44cdaf4e106339df62eac5dc9f -- ___

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 98eb40828af97760badfa7b8ff84bd4f7a079839 by Miss Islington (bot) in branch '3.9': bpo-45081: Fix __init__ method generation when inheriting from Protocol (GH-28121) (GH-28132) https://github.com/python/cpython/commit/98eb40828af97760badfa7b8ff84bd

[issue45079] 3.8.11 and 3.8.12 missing Windows artifacts, only tarballs - build system failed?

2021-09-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: Wow, the artifacts are built and posted by hand??? -- ___ Python tracker ___ ___ Python-bugs-list

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: The "pending" deprecation status of lib2to3 in 3.9 and 3.10 is no worse than a vanilla deprecation in terms of visibility. It will appear just the same when run with pytest or `-X dev`. However, upgrading the deprecation between 3.10.0rc1 and 3.10.0rc2 really w

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +26569 pull_request: https://github.com/python/cpython/pull/28131 ___ Python tracker _

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +26570 pull_request: https://github.com/python/cpython/pull/28132 ___ Python tracker ___ __

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0635e201beaf52373f776ff32702795e38f43ae3 by Yurii Karabas in branch 'main': bpo-45081: Fix __init__ method generation when inheriting from Protocol (GH-28121) https://github.com/python/cpython/commit/0635e201beaf52373f776ff32702795e38f43ae3

[issue45055] Fresh build on Windows fails the first time for zlib.c

2021-09-02 Thread Steve Dower
Steve Dower added the comment: I use git worktree as well (it's great for backporting - I have all the release branches checked out all the time), but it likely means that you are regularly downloading and extracting these files. So whatever app is keeping the file handle open is probably do

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2021-09-02 Thread STINNER Victor
STINNER Victor added the comment: > I am wondering why the change was not backported to 3.6 and 3.7? These branches no longer accept optimizations or bugfixes, only security fixes: https://devguide.python.org/#status-of-python-branches -- ___ Pytho

[issue45079] 3.8.11 and 3.8.12 missing Windows artifacts, only tarballs - build system failed?

2021-09-02 Thread Steve Dower
Steve Dower added the comment: As the human "build bot" in question, yes, I do get tired :) -- ___ Python tracker ___ ___ Python-bu

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2021-09-02 Thread STINNER Victor
STINNER Victor added the comment: I close the issue: lib2to3 is now deprecated in Python 3.11. I propose to open a new issue in Python 3.13 or newer to remove it. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ P

[issue45082] ctypes: Deprecate c_buffer() alias to create_string_buffer()

2021-09-02 Thread STINNER Victor
STINNER Victor added the comment: > -0 I'm not sure it's worth the hassle to remove this. I'd just delete the > silly comment that this is supposedly deprecated since at least 2006. Ok, I created PR 28129 for that. -- ___ Python tracker

[issue45082] ctypes: Deprecate c_buffer() alias to create_string_buffer()

2021-09-02 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26568 pull_request: https://github.com/python/cpython/pull/28129 ___ Python tracker ___ __

[issue45086] f-string unmatched ']'

2021-09-02 Thread Greg Kuhn
Greg Kuhn added the comment: But doesn't the square bracket have no relevance here? It's not within a curly bracketed string so shouldn't be treated specially. I would have expected the error to be: SyntaxError: f-string: unmatched '}'. Unless I need to go back and reread pep498... -

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2021-09-02 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +26567 pull_request: https://github.com/python/cpython/pull/28128 ___ Python tracker ___ __

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2021-09-02 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: I am wondering why the change was not backported to 3.6 and 3.7? It introduces different behavior. For instance, I need to keep duplicate keys from JSON data (because it is allowed by the RFC and it is a missing feature for tools such like HTTPie). Have a

[issue45082] ctypes: Deprecate c_buffer() alias to create_string_buffer()

2021-09-02 Thread STINNER Victor
STINNER Victor added the comment: > Since this alias is not a big maintenance burden, I think we can use > deprecation period longer than minimum 2 releases. Ok. I modified my PR to only deprecate the alias without planning to remove it. Someone else can decide in at least 2 releases when it

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2021-09-02 Thread miss-islington
miss-islington added the comment: New changeset 559af7434668e2950c08389515a52eba697ef6af by Miss Islington (bot) in branch '3.10': bpo-40360: [doc] Rephrase deprecation note about lib2to3 (GH-28122) https://github.com/python/cpython/commit/559af7434668e2950c08389515a52eba697ef6af --

[issue45082] ctypes: Deprecate c_buffer() alias to create_string_buffer()

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: -0 I'm not sure it's worth the hassle to remove this. I'd just delete the silly comment that this is supposedly deprecated since at least 2006. I still get 32,978 results looking at Github Search like this: https://github.com/search?q=c_buffer+-filename%3Atest_

[issue45024] Cannot extend collections ABCs with protocol

2021-09-02 Thread Ken Jin
Ken Jin added the comment: I suspect this may be intentional. See related issues https://bugs.python.org/issue35190 and https://bugs.python.org/issue23864. Copying verbatim from what Ivan said in the first issue: " The separation may look arbitrary, but the idea is quite simple. Only those

[issue45086] f-string unmatched ']'

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: I think the error is short for "I found a ']' without a matching '['". -- nosy: +eric.smith ___ Python tracker ___ ___

[issue44748] argparse: a bool indicating if arg was encountered

2021-09-02 Thread wodny
Change by wodny : -- nosy: +wodny85 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2021-09-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +26566 pull_request: https://github.com/python/cpython/pull/28127 ___ Python tracker ___ __

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f0b63d5b56a6324f5f86807d9548c7b38aa2a8f7 by Łukasz Langa in branch 'main': bpo-40360: [doc] Rephrase deprecation note about lib2to3 (GH-28122) https://github.com/python/cpython/commit/f0b63d5b56a6324f5f86807d9548c7b38aa2a8f7 -- message_co

[issue43612] zlib.compress should have a wbits argument

2021-09-02 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43612] zlib.compress should have a wbits argument

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your contribution, Ruben! ✨ 🍰 ✨ -- nosy: +lukasz.langa resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue43613] gzip.compress and gzip.decompress are sub-optimally implemented.

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ea23e7820f02840368569db8082bd0ca4d59b62a by Ruben Vorderman in branch 'main': bpo-43613: Faster implementation of gzip.compress and gzip.decompress (GH-27941) https://github.com/python/cpython/commit/ea23e7820f02840368569db8082bd0ca4d59b62a -

[issue45086] f-string unmatched ']'

2021-09-02 Thread Greg Kuhn
New submission from Greg Kuhn : Hi All, Is the below a bug? Shouldn't the interpreter be complaining about a curly brace? $ python Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more informat

[issue45056] compiler: Unnecessary None in co_consts

2021-09-02 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26564 pull_request: https://github.com/python/cpython/pull/28125 ___ Python tracker ___ _

[issue45019] Freezing modules has manual steps but could be automated.

2021-09-02 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 3.0 -> 4.0 pull_requests: +26565 pull_request: https://github.com/python/cpython/pull/28125 ___ Python tracker ___ __

[issue45067] Failed to build _curses on CentOS 7

2021-09-02 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: You should use -lpaneltw instead of -lpanelw. See also: https://bugs.python.org/issue41981 -- nosy: +cstratak ___ Python tracker ___

[issue45083] Need to use the exception class qualname when rendering exception (in C code)

2021-09-02 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue34561] Replace list sorting merge_collapse()?

2021-09-02 Thread Laurent Lyaudet
Laurent Lyaudet added the comment: Thanks for the patch Tim. If I find a rival that stands against power sort, I'll tell you. -- ___ Python tracker ___ ___

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-02 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj, lukasz.langa, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2021-09-02 Thread STINNER Victor
STINNER Victor added the comment: Let's see how it goes. In the worst case, we have time before Python 3.11 final to revert it one more time. -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue39241] Popen of python3.6 hangs on os.read(errpipe_read, 50000)

2021-09-02 Thread Irit Katriel
Irit Katriel added the comment: I'm closing this because 1. both 2.7 and 3.6 are no longer maintained 2. This is not an actual bug report (we don't know what the hanging code was doing) so there is no chance of reproducing it. If you are having problems with this in a current version (>= 3.

[issue45056] compiler: Unnecessary None in co_consts

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 55c4a92fc1abfe388335071f1d64b3addfa5793f by Inada Naoki in branch 'main': bpo-45056: Remove trailing unused constants from co_consts (GH-28109) https://github.com/python/cpython/commit/55c4a92fc1abfe388335071f1d64b3addfa5793f -- nosy: +lu

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 19ba2122ac7313ac29207360cfa864a275b9489e by Victor Stinner in branch 'main': bpo-37330: open() no longer accept 'U' in file mode (GH-28118) https://github.com/python/cpython/commit/19ba2122ac7313ac29207360cfa864a275b9489e -- nosy: +lukasz

[issue44226] Threads shutting down in Py 2.7 but not in Py 3.69 while making SSH connection using Paramiko module

2021-09-02 Thread Irit Katriel
Irit Katriel added the comment: Closing again. In addition to what Eric said, both 2.7 and 3.6 are no longer maintained so you will need to reproduce the issue on a current version (>= 3.8) for any of us to investigate it. -- nosy: +iritkatriel resolution: remind -> third party statu

[issue35693] test_httpservers fails

2021-09-02 Thread Irit Katriel
Irit Katriel added the comment: Closing as 3.7 is no longer maintained and this problem was not reproduced in 3.8. -- nosy: +iritkatriel resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue41367] Popen Timeout raised on 3.6 but not on 3.8

2021-09-02 Thread Irit Katriel
Irit Katriel added the comment: 3.6 is no longer maintained, so even if there was a bug in 3.6 that was fixed in 3.8 we aren't going to be able to do anything about it. If nobody objects I will close this issue soon. -- nosy: +iritkatriel resolution: -> out of date status: open -> p

[issue42255] webbrowser.MacOSX is unused, untested and undocumented

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: Dong-hee Na, you can't remove it in 3.12 per PEP 387: > Unless it is going through the deprecation process below, the behavior of an > API must not change in an incompatible fashion between any two consecutive > releases. Python's yearly release process (PEP 60

[issue32766] 4.7.7. Function Annotations

2021-09-02 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Mistaken notion in tutorial ___ Python tracker ___

[issue45085] Remove the binhex module, binhex4 and hexbin4 standards

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: Agreed with Victor. I'd go with the "traditional" flow of PendingDeprecationWarning in 3.9, DeprecationWarning in 3.10, and removal in 3.11; but since we kept DeprecationWarning for two releases, it's pretty much the same and fine to remove it now. --

[issue23864] doc: issubclass without registration only works for "one-trick pony" collections ABCs.

2021-09-02 Thread Irit Katriel
Irit Katriel added the comment: See also issue35190. -- keywords: +easy -patch nosy: +iritkatriel title: issubclass without registration only works for "one-trick pony" collections ABCs. -> doc: issubclass without registration only works for "one-trick pony" collections ABCs. type:

[issue35190] doc: collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2021-09-02 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue) -> doc: collections.abc.Sequence cannot be used to test whether a class provides a particular interface versions: +Python 3.10

[issue45085] Remove the binhex module, binhex4 and hexbin4 standards

2021-09-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a8066087054417885db0a2dbdce2ddb2ac498247 by Victor Stinner in branch 'main': bpo-45085: Remove the binhex module (GH-28117) https://github.com/python/cpython/commit/a8066087054417885db0a2dbdce2ddb2ac498247 -- nosy: +lukasz.langa

  1   2   >