Skip to content

Commit 23bce9e

Browse files
committed
Minor improvements
1 parent 1e92013 commit 23bce9e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

peps/pep-0999.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ First officially proposed ten years ago in (the now deferred) :pep:`505`
7272
the idea to add ``None``-aware access operators has been along for
7373
some time now, discussed at length in numerous threads, most recently
7474
in [#discuss_revisit_505]_ and [#discuss_safe_navigation_op]_. This PEP
75-
aims to capture the current state of discussion and propose a specification
75+
aims to capture the current state of discussion and proposes a specification
7676
for addition to the Python language. In contrast to :pep:`505`, it will
7777
only focus on the two access operators. See the `Deferred Ideas`_ section
7878
for more details.
@@ -677,9 +677,10 @@ Coalesce ``??`` and coalesce assignment operator ``??=``
677677
--------------------------------------------------------
678678

679679
:pep:`505` also suggested the addition of a ``None`` coalescing operator
680-
``??`` and a coalesce assignment operator ``??=``. While pursuing these
681-
ideas further would make sense, this PEP focuses just on the
682-
``None``-aware access operators.
680+
``??`` and a coalesce assignment operator ``??=``. As the ``None``-aware
681+
access operators have their own use cases, the coalescing operators were
682+
moved into a separate document, see PEP-XXX. Both proposals can be
683+
adopted independently of one another.
683684

684685
``None``-aware function calls
685686
-----------------------------
@@ -707,8 +708,9 @@ It was suggested to add a ``.get(key, default=None)`` method to ``list``
707708
and ``tuple`` objects, similar to the existing ``dict.get`` method. This
708709
could further make parsing of structured data easier since it would no
709710
longer be necessary to check if a ``list`` or ``tuple`` is long enough
710-
before trying to access the n-th element. While potentially useful,
711-
the idea is out of the scope of this PEP.
711+
before trying to access the n-th element avoiding a possible
712+
``IndexError``. While potentially useful, the idea is out of the scope
713+
of this PEP.
712714

713715

714716
Rejected Ideas

0 commit comments

Comments
 (0)