Skip to content

Commit d8b4078

Browse files
Apply suggestion from ZeroIntensity
Co-authored-by: Peter Bierma <[email protected]>
1 parent 1fea648 commit d8b4078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/datastructures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ extracting the value given the key. It is also possible to delete a key:value
514514
pair with ``del``. If you store using a key that is already in use, the old
515515
value associated with that key is forgotten.
516516

517-
Extracting value for a non-existent key by subscripting (``d[key]``) raises
517+
Extracting a value for a non-existent key by subscripting (``d[key]``) raises a
518518
:exc:`KeyError`. To avoid getting this error when trying to access a possibly
519519
non-existent key, use the :meth:`~dict.get` method instead, which returns
520520
``None`` (or a specified default value) if the key is not in the dictionary.

0 commit comments

Comments
 (0)