[Python-ideas] Re: Improved multi-tasking performance through deterministic GIL hand-off

2021-05-10 Thread Shreyan Avigyan
I'm currently learning about the GIL and how can it be removed. So I'm confessing that I understood only half of your words and I can be wrong. As far I understood by reading your long passage, the problem is other threads don't get enough chance to run and the CPU-Bound Python process will re-

[Python-ideas] Re: Barrier Object in asyncio lib

2021-05-10 Thread Emmanuel Arias
Hello! If anyone didn't note, there's a PR about this topic :) https://github.com/python/cpython/pull/24903 Cheers! ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.pyth

[Python-ideas] Re: Add a mechanism so that multiple exceptions can be caught using `except E1, E2, E3:`

2021-05-10 Thread Rob Cliffe via Python-ideas
On 10/05/2021 12:43, Chris Angelico wrote: On Mon, May 10, 2021 at 9:36 PM Steven D'Aprano wrote: On Mon, May 10, 2021 at 10:04:58AM +1000, Chris Angelico wrote: On Mon, May 10, 2021 at 9:57 AM Steven D'Aprano wrote: [...] Is there an aim beyond saving two characters? It would remove a l

[Python-ideas] Re: Improved multi-tasking performance through deterministic GIL hand-off

2021-05-10 Thread Barry Scott
> On 10 May 2021, at 20:23, Barry Scott wrote: > > > >> On 10 May 2021, at 15:30, Sophist wrote: >> >> I don't know how many people will remember some work that David Beazley did >> about a decade ago on how the GIL impacts multithreading performance - >> essentially he instrumented the

[Python-ideas] Re: Improved multi-tasking performance through deterministic GIL hand-off

2021-05-10 Thread Barry Scott
> On 10 May 2021, at 15:30, Sophist wrote: > > I don't know how many people will remember some work that David Beazley did > about a decade ago on how the GIL impacts multithreading performance - > essentially he instrumented the Python interpreter to log how multiple > threads competed for

[Python-ideas] Improved multi-tasking performance through deterministic GIL hand-off

2021-05-10 Thread Sophist
I don't know how many people will remember some work that David Beazley did about a decade ago on how the GIL impacts multithreading performance - essentially he instrumented the Python interpreter to log how multiple threads competed for the GIL and gave several presentations over the space of

[Python-ideas] OT: Accessibility: Jana Schroeder's Holman Prize Application

2021-05-10 Thread Jonathan Fine
Perhaps Off Topic, but for a good cause. This year I met Jana Scroeder, a blind person forced to change jobs as part of the social cost of Covid. Her outsider experience of computer coding training became a wish to make things better. She has applied for a Holman Prize ($25,000 over a year) to fun

[Python-ideas] Re: Add a mechanism so that multiple exceptions can be caught using `except E1, E2, E3:`

2021-05-10 Thread Thomas Grainger
how about: ``` try: ... except E1 | E2 | E3 as e: ... ``` it's syntactically valid but is this again: https://bugs.python.org/issue12029 ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@

[Python-ideas] Re: Add a mechanism so that multiple exceptions can be caught using `except E1, E2, E3:`

2021-05-10 Thread Chris Angelico
On Mon, May 10, 2021 at 9:36 PM Steven D'Aprano wrote: > > On Mon, May 10, 2021 at 10:04:58AM +1000, Chris Angelico wrote: > > On Mon, May 10, 2021 at 9:57 AM Steven D'Aprano wrote: > > [...] > > > Is there an aim beyond saving two characters? > > > It would remove a level of frustration. I've wa

[Python-ideas] Re: Add a mechanism so that multiple exceptions can be caught using `except E1, E2, E3:`

2021-05-10 Thread Steven D'Aprano
On Mon, May 10, 2021 at 10:04:58AM +1000, Chris Angelico wrote: > On Mon, May 10, 2021 at 9:57 AM Steven D'Aprano wrote: [...] > > Is there an aim beyond saving two characters? > It would remove a level of frustration. I've watched a lot of novice > programmers, and some intermediate programmers

[Python-ideas] Re: Add a mechanism so that multiple exceptions can be caught using `except E1, E2, E3:`

2021-05-10 Thread Shreyan Avigyan
+1 and -1 at the same time. I feel like :- "This makes sense", try: # something except E1, E2, E3: # something "This doesn't make sense", try: # something except E1, E2, E3 as e: # something The second one according to this idea would be parsed as, try: # something except (E1