Commit 94c3fb6
committed
src/sage/interfaces/maxima_abstract.py: reimplement _commands()
The maxima _commands() method was implemented in terms of the
tab-completion method, completions(), which goes one-letter-at-a-time
and is very slow as a result. We reimplement it directly to call
maxima's apropos() with the empty string. This gets all commands in
one shot. We also clean up the list of commands a little by excluding
some junk results. The diff (eliminated elements) from the old list to
the new one is,
{'SPLITS\\IN\\Q',
'erf_%iargs',
'exp-form',
'is-boole-eval',
'is-boole-verify',
'maybe-boole-eval',
'maybe-boole-verify',
'sstatus-aux',
'time\\/\\/call',
'unknown\\?',
'zeta%pi'}
The faster method should help avoid warnings in the CI about the test
being too slow.1 parent 4cdd703 commit 94c3fb6
1 file changed
+48
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
| 295 | + | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
300 | | - | |
| 302 | + | |
301 | 303 | | |
302 | | - | |
| 304 | + | |
303 | 305 | | |
304 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
305 | 321 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 322 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
324 | 352 | | |
325 | 353 | | |
326 | 354 | | |
| |||
0 commit comments