I have just seen it published, looks great, thanks to all the authors! https://www.python.org/dev/peps/pep-0622/
On 24 Jun 2020, at 14:51, Alfonso L. Castaño <alfonsoluis.castanom@um.es> wrote:
I have just seen it published, looks great, thanks to all the authors! https://www.python.org/dev/peps/pep-0622/ _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: jakub@stasiak.at
Thanks for this, it seems immediately relevant to my interests, I’d have likely not known about it for a good while if not for your email. Subscribbed to python-dev immediately. :) Best, Jakub
Pattern matching is sooo awesome! I am really excited about this! You made me genuinely happy! Thanks for it! The most awesome part for me is https://www.python.org/dev/peps/pep-0622/#static-checkers-specification I will totally add a support for this in dry-python/returns. match container: case Success(inner): return inner case Failure(inner): return 'some_default' That's what I wanted for so long! ср, 24 июн. 2020 г. в 16:00, Jakub Stasiak <jakub@stasiak.at>:
On 24 Jun 2020, at 14:51, Alfonso L. Castaño <alfonsoluis.castanom@um.es> wrote:
I have just seen it published, looks great, thanks to all the authors! https://www.python.org/dev/peps/pep-0622/ _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: jakub@stasiak.at
Thanks for this, it seems immediately relevant to my interests, I’d have likely not known about it for a good while if not for your email. Subscribbed to python-dev immediately. :)
Best, Jakub _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: n.a.sobolev@gmail.com
On Wed, Jun 24, 2020 at 11:09 AM Никита Соболев <n.a.sobolev@gmail.com> wrote:
Pattern matching is sooo awesome! I am really excited about this! You made me genuinely happy! Thanks for it!
The most awesome part for me is https://www.python.org/dev/peps/pep-0622/#static-checkers-specification
I will totally add a support for this in dry-python/returns.
match container:
case Success(inner):
return inner
case Failure(inner):
return 'some_default'
That's what I wanted for so long!
The second branch could be written case Failure(): return 'some_default' i.e. no need to capture a variable you don't need. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
participants (4)
-
Alfonso L. Castaño
-
Guido van Rossum
-
Jakub Stasiak
-
Никита Соболев