# HG changeset patch
# User William Stein <wstein@gmail.com>
# Date 1259725443 18000
# Node ID acebca58053e4fc06edb08f43e1661e02003f8b4
# Parent 0237096bbbe63c3f14cb003a93822a3073653f37
add attach command (trac 7514): rewrite load and attach
diff -r 0237096bbbe6 -r acebca58053e sage/misc/attach.py
-
|
+
|
|
| 1 | """ |
| 2 | Attach a file to a running instance of Sage. |
| 3 | """ |
| 4 | |
| 5 | class Attach: |
| 6 | r""" |
| 7 | """ |
| 8 | def __repr__(self): |
| 9 | return self.__doc__ |
| 10 | |
| 11 | def __call__(self, *args, **kwds): |
| 12 | raise RuntimeError, "Use 'attach filename' instead, where filename is a .py, .sage, or .spyx file." |
| 13 | |
| 14 | attach = Attach() |