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.

-- 
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

Reply via email to