On 5 Mar, 2012, at 15:23 PM, Nils Bruin wrote: > On Mar 5, 2:10 pm, Raniere Gaia Silva <r.gaia...@gmail.com> wrote: >> Hello all, >> I'm starting use Sage last week and I'm having some problem to remove some >> file from attached_files list. >> Below you can see what I try. >> >> ---------------------------------------------------------------------- >> | Sage Version 4.8, Release Date: 2012-01-20 | >> | Type notebook() for the GUI, and license() for information. | >> ---------------------------------------------------------------------- >> sage: load test.sage >> Hello world >> sage: >> sage: attach test.sage >> Hello world >> sage: >> Hello world >> 1 >> sage: attached_files() >> ['/attached/file/path/test.sage'] > > try > sage: detach(attached_files()[0]) > sage: attached_files() > [] > > If you type "attached_files??" you'll see the actual code and note > that the value returned by attached_files is just a copy of the > internal data, so deleting something from it has no effect.
It's worth filing a bug on this. The documentation is a bit, um, imprecise: Type ``attached_files()`` for a list of all currently attached files. You can remove files from this list to stop them from being watched. Justin -- Justin C. Walker, Curmudgeon at Large Director Institute for the Enhancement of the Director's Income ----------- Nobody knows the trouble I've been ----------- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org