We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaa1e11 commit baee4baCopy full SHA for baee4ba
Doc/library/stdtypes.rst
@@ -1258,6 +1258,14 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
1258
| ``s.reverse()`` | reverses the items of *s* in | \(4) |
1259
| | place | |
1260
+------------------------------+--------------------------------+---------------------+
1261
+| ``s.get(i)`` or |Returns the value for the index | |
1262
+| ``s.get(i, x)`` |if the index is in the list, | |
1263
+| |otherwise the default value. If | |
1264
+| |no default value is set, the | |
1265
+| |default value is None, so this | |
1266
+| |method will never raise an | |
1267
+| |`IndexError`. | |
1268
++------------------------------+--------------------------------+---------------------+
1269
1270
1271
Notes:
0 commit comments