Fix qhelp formatting

This commit is contained in:
Joe Farebrother
2025-04-04 12:43:23 +01:00
parent de7e611962
commit e08072d77b

View File

@@ -27,10 +27,13 @@ In the following (BAD) example, a `tasks` list is created, but each task capture
<sample src="examples/bad.py" />
<p>
In the following (GOOD) example, each closure has an `i` default parameter, shadowing the outer <code>i</code> variable, the default value of which is determined as the value of the loop variable <code>i</code> at the time the closure is created.
<sample src="examples/good.py" />
In the following (GOOD) example, <code>functools.partial</code> is used to partially evaluate the lambda expression with the value of <code>i</code>.
<sample src="examples/good2.py" />
</p>
<sample src="examples/good.py" />
<p>
In the following (GOOD) example, <code>functools.partial</code> is used to partially evaluate the lambda expression with the value of <code>i</code>.
</p>
<sample src="examples/good2.py" />
</example>