Skip to content

Commit efb87b1

Browse files
authored
gh-85757: Change wording from nested to inner (GH-91811)
#85757 https://docs.python.org/3/tutorial/datastructures.html#nested-list-comprehensions I do think this is clearer, but I wonder if 'nested' should be kept though to get the terminology out there more often. So perhaps it could be something like 'inner (nested) listcomp' or 'nested (inner) listcomp' despite sounding a bit redundant Automerge-Triggered-By: GH:rhettinger
1 parent 2b97d7f commit efb87b1

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
@@ -303,7 +303,7 @@ The following list comprehension will transpose rows and columns::
303303
>>> [[row[i] for row in matrix] for i in range(4)]
304304
[[1, 5, 9], [2, 6, 10], [3, 7, 11], [4, 8, 12]]
305305

306-
As we saw in the previous section, the nested listcomp is evaluated in
306+
As we saw in the previous section, the inner list comprehension is evaluated in
307307
the context of the :keyword:`for` that follows it, so this example is
308308
equivalent to::
309309

0 commit comments

Comments
 (0)