[Python-Dev] Requesting Review of Pull Request

2021-03-02 Thread Nathan Beals
Good Afternoon Python Devs, I'm requesting that someone review the pull request linked to this issue: https://bugs.python.org/issue42994 (github PR: https://github.com/python/cpython/pull/24287). I'm following the contributing guidelines instructions to email this address if the PR hasn't

[Python-Dev] Re: Which thing is "Development Mode"

2021-03-02 Thread Coyot Linden (Glenn Glazer)
On 3/1/21 08:49, Paul Moore wrote: On Mon, 1 Mar 2021 at 16:25, Coyot Linden (Glenn Glazer) wrote: This is one of those cases, where those of us who have been around Python for awhile can perhaps infer from context which his meant, but the

[Python-Dev] Re: PEP 637 - Support for indexing with keyword arguments: request for feedback for SC submission

2021-03-02 Thread Thor Whalen
Thanks Brett. I'll stay put (and hopeful) then. Thanks for all the great work you're doing out there. Despite the (loud) dissenters, a lot of us (silently) appreciate it. On Thu, Feb 25, 2021 at 10:57 AM Brett Cannon wrote: > > > On Thu, Feb 25, 2021 at 8:46 AM Thor Whalen wrote: > >> Finally!

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-03-02 Thread Sven R. Kunze
Just to be on the safe side here, I would want to asked a little bit further. On 02.03.21 12:22, Irit Katriel wrote: 1) What is the right "except pattern" when ExceptionGroup is introduced for the use cases described above (remote or concurrent python processes)? If you want to

[Python-Dev] [RELEASE] Python 3.10.0a6 is available, now with 100% more pattern matching

2021-03-02 Thread Pablo Galindo Salgado
Remember us? It's your friendly CPython release team and we have something we think you may like: The new alpha release of Python 3.10 is here, now with 100% more pattern matching. If I were you, I would download it and start playing with it. Extra points if you report us any bugs you find along

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-03-02 Thread Sven R. Kunze
Hey Irit, cool proposal. I just have two questions regarding "except Exception" or "except BaseException" as it is used e.g. by concurrent.futures.process (def _process_worker) from the stdlib. Almost similarly, I maintain a library using this pattern to wrap/unwrap exceptions from remote

[Python-Dev] Re: Which thing is "Development Mode"

2021-03-02 Thread Paul Moore
I'm somewhat baffled by your comment here. "Just because something is bad or even often bad, is no reason to let it stay that way or to not try and make things better." I have no idea what gives you the impression that I think that way. *Shrug* I guess I don't understand what you expect here. But

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-03-02 Thread Irit Katriel via Python-Dev
Hi Sven, On Mon, Mar 1, 2021 at 8:59 PM Sven R. Kunze wrote: > Hey Irit, > > cool proposal. > Thank you. > I just have two questions regarding "except Exception" or "except > BaseException" as it is used e.g. by concurrent.futures.process (def > _process_worker) from the stdlib. > > Almost

[Python-Dev] Integer concatenation to byte string

2021-03-02 Thread Memz
Currently, the only way to concatenate an integer to a bytes object is by converting the integer to bytes with a function call before concatenating. And there is no way to make a mutable bytes object without a function call. And bytearray function calls are 9-10x slower than b-strings. I propose

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-03-02 Thread Irit Katriel via Python-Dev
Hi Barry, On Mon, Mar 1, 2021 at 6:12 PM Barry Scott wrote: > > Have you considered alternative syntax to the "except*"? > I feel that expect* is too easy to confuse with plain except. > We briefly considered things like "except Group[ValueError, TypeError]". Do you (or anyone else) have any

[Python-Dev] Python 3.10.0a6 is available, now with 100% more pattern matching

2021-03-02 Thread Pablo Galindo Salgado
Remember us? It's your friendly CPython release team and we have something we think you may like: The new alpha release of Python 3.10 is here, now with 100% more pattern matching. If I were you, I would download it and start playing with it. Extra points if you report us any bugs you find along

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-03-02 Thread Barry Scott
> On 23 Feb 2021, at 00:24, Irit Katriel via Python-Dev > wrote: > > > Hi all, > > We would like to request feedback on PEP 654 -- Exception Groups and except*. > > https://www.python.org/dev/peps/pep-0654/ > > > It proposes language extensions

[Python-Dev] Re: Requesting Review of Pull Request

2021-03-02 Thread Senthil Kumaran
Hello Nathan, The PR is merged. Thank you for contributing and following up here. -- Senthil On Tue, Mar 02, 2021 at 07:50:13PM +, Nathan Beals wrote: > Good Afternoon Python Devs, > > I'm requesting that someone review the pull request linked to this issue: >

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-03-02 Thread Guido van Rossum
On Tue, Mar 2, 2021 at 1:53 PM Irit Katriel via Python-Dev < python-dev@python.org> wrote: > [...] > I can't imagine people building deep trees of exceptions in practice (at > least not on purpose). But some nesting may show up naturally, and we need > to support it because otherwise it can get