[Python-Dev] Re: RFC on Callable Type Syntax

2021-10-07 Thread Piotr Duda
pt., 8 paź 2021 o 04:48 S Pradeep Kumar napisał(a): > ... > Note that we considered and rejected using a full def-signature syntax like > > (record: PurchaseRecord, permissions: List[AuthPermission], /) -> > FormattedItem > > because it would be more verbose for common cases and could

[Python-Dev] Re: Python multithreading without the GIL

2021-10-07 Thread Chris Angelico
On Fri, Oct 8, 2021 at 1:51 PM Sam Gross wrote: > > Hi, > > I've been working on changes to CPython to allow it to run without the global > interpreter lock. I'd like to share a working proof-of-concept that can run > without the GIL. The proof-of-concept involves substantial changes to CPython

[Python-Dev] Re: RFC on Callable Type Syntax

2021-10-07 Thread Chris Angelico
On Fri, Oct 8, 2021 at 1:45 PM S Pradeep Kumar wrote: > The Callable type is also usable as an expression, like in type aliases > `IntOperator = (int, int) -> int` and `cast((int) -> int, f)` calls. > > **Question 1**: Are there concerns we should keep in mind about such a syntax > proposal? >

[Python-Dev] Python multithreading without the GIL

2021-10-07 Thread Sam Gross
Hi, I've been working on changes to CPython to allow it to run without the global interpreter lock. I'd like to share a working proof-of-concept that can run without the GIL. The proof-of-concept involves substantial changes to CPython internals, but relatively few changes to the C-API. It is

[Python-Dev] RFC on Callable Type Syntax

2021-10-07 Thread S Pradeep Kumar
Hello all, Typing-sig has been discussing user-friendly syntax for the type used to represent callables. [1] Since this affects the Python language syntax, we wanted to get some high-level feedback from you before putting up a detailed PEP. TL;DR: We want to propose syntax for Callable types,

[Python-Dev] [RELEASE] Python 3.11.0a1 is available

2021-10-07 Thread Pablo Galindo Salgado
Now that we are on a release spree, here you have the first alpha release of Python 3.11: Python 3.11.0a1. Let the testing and validation games begin! https://www.python.org/downloads/release/python-3110a1/ *Major new features of the 3.11 series, compared with 3.10* Python 3.11 is still in