qsieve with time=True doesn't work
When running something like qsieve(n, time=True)
, for some reason it uses the built-in time
command in the shell to do this (is there really any advantage in that?)
However, on Cygwin, there is not a time
program by default; it is a bash shell built-in, and there is no wrapper executable for it, so trying to run time
with Popen
fails as reported here: https://ask.sagemath.org/question/48549/qsieve-error/
A workaround would be to just use timeit
, like
sage: timeit('qsieve(n)', repeat=1, number=1)
Change History (8)
Milestone: |
sage-9.0 →
sage-9.1
|
Milestone: |
sage-9.1 →
sage-9.2
|
Milestone: |
sage-9.2 →
sage-9.3
|
Milestone: |
sage-9.3 →
sage-9.4
|
Milestone: |
sage-9.4 →
sage-9.5
|
Milestone: |
sage-9.5 →
sage-9.6
|
Milestone: |
sage-9.6 →
sage-9.7
|
Milestone: |
sage-9.7 →
sage-pending
|
Ticket retargeted after milestone closed