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

2021-10-19 Thread Doug Swarin
I will also say that I don't believe the safe-navigation operators necessarily compromise type safety. PEP 505 explicitly rejects having them catch `AttributeError` or `KeyError` (and I agree with this rejection). It's not the default behavior of objects to return None when an unknown attribute

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

2021-10-14 Thread Doug Swarin
Steven D'Aprano wrote: > Hello Doug, > On Thu, Oct 14, 2021 at 03:45:07PM -, Doug Swarin wrote: > > I believe strong and valid arguments can be made about the use of None > > being a fundamental flaw in some types of coding > > Can you elaborate on that? Obviously

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

2021-10-14 Thread Doug Swarin
Hello, I've been following PEP 505 (https://www.python.org/dev/peps/pep-0505/) since it was first proposed for Python 3.8. It's been deferred for some time and I'm interested in seeing it in Python 3.11, but I know there were also a number of objections which resulted in it being deferred (incl