aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/skylark/concepts.md
diff options
context:
space:
mode:
Diffstat (limited to 'site/docs/skylark/concepts.md')
-rw-r--r--site/docs/skylark/concepts.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/site/docs/skylark/concepts.md b/site/docs/skylark/concepts.md
index 355a15f8c2..7388ab7e87 100644
--- a/site/docs/skylark/concepts.md
+++ b/site/docs/skylark/concepts.md
@@ -171,8 +171,10 @@ Python:
* Recursion is not allowed.
-* Loops iterate on a shallow copy of the elements. If the list is modified
- during the iteration, you will only see the old values.
+* Loops iterate over a shallow copy of the collection. If the collection is a
+ list or dictionary that is modified during iteration, this will not affect
+ what values get bound to the loop variable or variables. The changes are
+ still visible if you directly access the collection.
The following Python features are not supported: