Factor does open files. The factor command in Pari uses the MPQS algorithm, which writes a large number of temporary files to disk.
My QS code does the same. In fact, it uses precisely the same file handling code as Pari, because I pinched it. On Apr 14, 8:17 pm, Jeroen Demeyer <[email protected]> wrote: > On 2011-04-14 21:03, kcrisman wrote: > > > sage: n = next_prime(10^30)*next_prime(10^40) > > sage: factor(n) > > ^C------------------------------------------------------------------------- > > -- > > KeyboardInterrupt Traceback (most recent call > > last) > > <snip> > > KeyboardInterrupt: > > sage: > > Exiting Sage (CPU time 0m30.15s, Wall time 0m39.21s). > > *** Warning: I/O: leaked file descriptor (0): /var/folders/Yy/ > > YytEJm5VEB0+pBRD7JNLe++++TQ/-Tmp-/MPQS.503.34295/LPNEW. > > *** Warning: I/O: leaked file descriptor (0): /var/folders/Yy/ > > YytEJm5VEB0+pBRD7JNLe++++TQ/-Tmp-/MPQS.503.34295/FNEW. > > I doubt that the factoring could cause this. factor() uses the PARI > library interface which should not open any files. > > Some things to try: > - do not interrupt the factorisation and wait for it to succeed. Maybe > factor(next_prime(10^15)*next_prime(10^50)) which should finish quickly. > - interrupt a completely different command, for example GAP: > SymmetricGroup(8).conjugacy_classes_subgroups() > - try the same using >= sage-4.7.alpha1 -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
