@@ -67,7 +67,7 @@ An attribute or value is ``missing``
6767 Motivation
6868==========
6969
70- First officially proposed ten years ago in (the now deferred) :pep: `505 `
70+ First officially proposed ten years ago in (the now deferred) :pep: `505 `,
7171the idea to add ``None ``-aware access operators has been along for
7272some time now, discussed at length in numerous threads, most recently
7373in [#discuss_revisit_505 ]_ and [#discuss_safe_navigation_op ]_. This PEP
@@ -760,11 +760,11 @@ If ``.b`` all of the sudden is also ``None``, it would still raise an
760760issues. As the expression output can already be ``None ``, the space of
761761potential outputs didn't change and as such no error would appear.
762762
763- If it is the intend to catch all ``AttributeError `` and ``TypeError ``,
763+ If it is the intent to catch all ``AttributeError `` and ``TypeError ``,
764764a try-except block can be used instead.
765765
766766As the ``?. `` and ``?[ ] `` would allow developers to be more explicit in
767- their intend , this suggestion is rejected.
767+ their intent , this suggestion is rejected.
768768
769769Remove short-circuiting
770770-----------------------
@@ -1237,21 +1237,21 @@ Proliferation of ``None`` in code bases
12371237---------------------------------------
12381238
12391239One of the reasons why :pep: `505 ` stalled was that some expressed their
1240- concern how ``None ``-aware access operators will effect the code written
1240+ concern how ``None ``-aware access operators will affect the code written
12411241by developers. If it is easier to work with ``optional `` attributes,
12421242this will encourage developers to use them more. They believe that e.g.
12431243returning an ``optional `` (can be ``None ``) value from a function is
12441244usually an anti-pattern. In an ideal world the use of ``None `` would
12451245be limited as much as possible, for example with early data validation.
12461246
1247- It is certainly true that new language features effect how the language
1247+ It is certainly true that new language features affect how the language
12481248as a whole develops. Therefore any changes should be considered carefully.
12491249However, just because ``None `` represents an anti-pattern for some, has
12501250not prevented the community as a whole from using it extensively. Rather
12511251the lack of ``None ``-aware access operators has stopped developers from
12521252writing concise expressions to access ``optional `` attributes and instead
12531253often leads to code which is difficult to understand and can contain
1254- subtly errors, see the `Motivation `_ section for more details.
1254+ subtle errors, see the `Motivation `_ section for more details.
12551255
12561256``None `` is not special enough
12571257------------------------------
0 commit comments