Skip to content

Commit 56a58b5

Browse files
committed
Fix typos
1 parent 663efa8 commit 56a58b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

peps/pep-0823.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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`,
7171
the idea to add ``None``-aware access operators has been along for
7272
some time now, discussed at length in numerous threads, most recently
7373
in [#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
760760
issues. As the expression output can already be ``None``, the space of
761761
potential 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``,
764764
a try-except block can be used instead.
765765

766766
As 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

769769
Remove short-circuiting
770770
-----------------------
@@ -1237,21 +1237,21 @@ Proliferation of ``None`` in code bases
12371237
---------------------------------------
12381238

12391239
One 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
12411241
by developers. If it is easier to work with ``optional`` attributes,
12421242
this will encourage developers to use them more. They believe that e.g.
12431243
returning an ``optional`` (can be ``None``) value from a function is
12441244
usually an anti-pattern. In an ideal world the use of ``None`` would
12451245
be 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
12481248
as a whole develops. Therefore any changes should be considered carefully.
12491249
However, just because ``None`` represents an anti-pattern for some, has
12501250
not prevented the community as a whole from using it extensively. Rather
12511251
the lack of ``None``-aware access operators has stopped developers from
12521252
writing concise expressions to access ``optional`` attributes and instead
12531253
often 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

Comments
 (0)