New GitHub issue #119187 from nineteendo:<br>

<hr>

<pre>
# Documentation

I think it would be useful to mention that a for loop is more efficient in a case like this:

```diff
-return any(key in m for m in self.maps)
+for mapping in self.maps:
+    if key in mapping:
+        return True
+return False
```
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/119187">View on GitHub</a>
<p>Labels: docs</p>
<p>Assignee: </p>