Commit 5e808ca
committed
src/sage/interfaces/maxima_abstract.py: clarify a comprehension
Using python's walrus operator we can simplify the list comprehension
that builds the list of maxima _commands(). Essentially this allows
us to save the result of foo.strip() and work with that rather than
the original unstripped string foo.1 parent b61a0ea commit 5e808ca
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
0 commit comments