[Python-Dev] Re: PEP 677 (Callable Type Syntax): Rejection notice.

2022-02-10 Thread Shantanu Jain
Hello! Thanks for the decision, the points raised mostly make sense to me. However, I find myself and a few others are a little confused by point 2. I can read it as saying the following perhaps slightly contradictory things: "It's good that PEP 677 is conservative and sticks to things Callable

[Python-Dev] RFC on PEP 680 -- tomllib: Support for Parsing TOML in the Standard Library

2022-01-27 Thread Shantanu Jain
oblems with pyproject.toml based builds. Thank you to everyone who has already left comments, suggestions and reacts on the Discuss thread! We welcome any further suggestions before submitting to the Steering Council :-) Thanks, Shantanu Jain Taneli Hu

[Python-Dev] Re: The current state of typing PEPs

2021-12-02 Thread Shantanu Jain
@Paul > ... missing resource is a central set of typing documentation that includes examples, FAQs and best practices as well as reference materials Like Sebastian, I agree, and this is something we're making progress on. > ... easy way of testing that the stubs are correct mypy ships with a to

[Python-Dev] Re: Python history: origin of the arrow annotation

2021-03-11 Thread Shantanu Jain
Haskell and the MLs are older than I am and use "->" to mark their function types (their functions are curried, but it clearly counts). Given the overall influence functional languages have had on modern typing, their influence making itself felt here would be unsurprising. On Sat, 6 Mar 2021 at 0

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-07-04 Thread Shantanu Jain
patterns made it natural / easy to support, it’s something to consider, either now or later a la PEP 614. On Sat, 4 Jul 2020 at 19:15, Chris Angelico wrote: > On Sun, Jul 5, 2020 at 12:03 PM Shantanu Jain > wrote: > > - Finally, I did mention increasing the scope of constant value p

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-07-04 Thread Shantanu Jain
a > target, it's still far more verbose than any of them. > > On Sat, Jul 4, 2020 at 4:31 PM Shantanu Jain > wrote: > >> Thank you for this PEP! Pattern matching is really exciting. >> >> As the PEP mentions and the thread evidences, the current dot syntax for &

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-07-04 Thread Shantanu Jain
Thank you for this PEP! Pattern matching is really exciting. As the PEP mentions and the thread evidences, the current dot syntax for the “constant value pattern” is a tricky point. Given this, I thought I’d throw another suggestion into the bikeshed. Use percent placeholder to indicate lookup (o

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-07-04 Thread Shantanu Jain
Thank you for this PEP! Pattern matching is really exciting. As the PEP mentions and the thread evidences, the current dot syntax for the “constant value pattern” is a tricky point. Given this, I thought I’d throw another suggestion into the bikeshed. Use percent placeholder to indicate lookup (o