@@ -72,7 +72,7 @@ First officially proposed ten years ago in (the now deferred) :pep:`505`
7272the idea to add ``None ``-aware access operators has been along for
7373some time now, discussed at length in numerous threads, most recently
7474in [#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
7676for addition to the Python language. In contrast to :pep: `505 `, it will
7777only focus on the two access operators. See the `Deferred Ideas `_ section
7878for 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``
707708and ``tuple `` objects, similar to the existing ``dict.get `` method. This
708709could further make parsing of structured data easier since it would no
709710longer 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
714716Rejected Ideas
0 commit comments