[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-20 Thread Petr Viktorin
On 19. 09. 22 17:58, Guido van Rossum wrote: Personally I think returning None is a fine API design, and IMO the concerns about this pattern are overblown. Note that X|None is no different than the "Maybe X" pattern that functional programmers are so fond of. I must disagree here. With `X|Non

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-20 Thread Petr Viktorin
On 20. 09. 22 10:59, Petr Viktorin wrote: On 19. 09. 22 17:58, Guido van Rossum wrote: Personally I think returning None is a fine API design, and IMO the concerns about this pattern are overblown. Note that X|None is no different than the "Maybe X" pattern that functional programmers are so f

[Python-Dev] Moving to Discourse

2022-09-20 Thread Petr Viktorin
As mentioned previously [0], the Steering Council decided to switch from python-dev to Discourse (discuss.python.org). We're aware that Discourse is not perfect. The previous mail thread [0] lists various shortcomings, as well as some workarounds. However, we don't see anything that would block

[Python-Dev] Re: Moving to Discourse

2022-09-20 Thread Barry Warsaw
On Sep 20, 2022, at 02:47, Petr Viktorin wrote: > > Note that you can have development-related discussions anywhere, as long as > you (eventually) include all relevant people. You're welcome to continue > using python-dev and other mailing lists, IRC, in-person sprints, etc. But > for PEP-leve

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-20 Thread Piotr Waszkiewicz
Hi Philipp, That's a really good idea, and I'd really want to see it being implemented. Having said that, I wonder how many people would actually use this concept of "none-representing" objects. In my 10+ years of programming experience I've never seen anybody eager to use more complex structures