Opened 15 years ago

Closed 13 years ago

## #1811 closed enhancement (fixed)

# command line detach -- completely missing from Sage!?

Reported by: | William Stein | Owned by: | William Stein |
---|---|---|---|

Priority: | major | Milestone: | sage-4.3.1 |

Component: | user interface | Keywords: | |

Cc: | Merged in: | ||

Authors: | Reviewers: | ||

Report Upstream: | N/A | Work issues: | Close as fixed |

Branch: | Commit: | ||

Dependencies: | Stopgaps: |

### Description

On Jan 17, 2008 12:08 AM, Dan Drake <dr.dan.drake@gmail.com> wrote: > Hello, > > I'd like to unattach a file that is currently attached. The The command to do this used to be called "detach". It has mysteriously completely vanished from Sage since when I wrote it! It's in the notebook still, but it isn't available from the command line anymore. Anyway, I've reported this as trac # In the meantime you can work around this problem as illustrated below: sage: sage: attach example.sage This is a simple SAGE example script. ... sage: import sage.misc.interpreter sage: sage.misc.interpreter.attached {'/home2/sage/build/sage-2.10.alpha4/example.sage': 1197908255.0} sage: del sage.misc.interpreter.attached['/home2/sage/build/sage-2.10.alpha4/example.sage'] sage: attached_files() [] > documentation for attach says that I can remove files from > attached_files() to do this, but that doesn't seem to work: > > sage: attached_files() > ['/home/drake/code/sage/foo.sage'] > sage: attached_files().pop() > '/home/drake/code/sage/foo.sage' > sage: attached_files() > ['/home/drake/code/sage/foo.sage'] > > It doesn't work because I'm accessing the list *returned by* > attached_files; I need to access whatever attached_files() looks at to > get that list. I used ??attached_files, but I don't seem to have access > to the 'attached' variable. > > What I'd really like, though, is an 'unattach' function! >

### Change History (7)

### comment:1 Changed 15 years ago by

Summary: | command line detach -- completely missing from Sage!? → [Bug Day Material] command line detach -- completely missing from Sage!? |
---|

### comment:2 Changed 14 years ago by

Type: | defect → enhancement |
---|

### comment:3 Changed 13 years ago by

Report Upstream: | → N/A |
---|---|

Work issues: | → Already fixed? |

### comment:4 Changed 13 years ago by

Status: | new → needs_info |
---|

### comment:6 Changed 13 years ago by

Summary: | [Bug Day Material] command line detach -- completely missing from Sage!? → [PLEASE CLOSE] command line detach -- completely missing from Sage!? |
---|---|

Work issues: | Already fixed? → Close as fixed |

Quirk: Use `detach('test.sage')`

to detach `test.sage`

.

### comment:7 Changed 13 years ago by

Milestone: | sage-4.3.2 → sage-4.3.1 |
---|---|

Resolution: | → fixed |

Status: | needs_info → closed |

Summary: | [PLEASE CLOSE] command line detach -- completely missing from Sage!? → command line detach -- completely missing from Sage!? |

Close as fixed by #7514.

**Note:**See TracTickets for help on using tickets.

With #7514 merged, should we close this ticket?