First time here? Check out the FAQ!

Ask Your Question
0

Why did attach become stupid?

asked 11 years ago

anonymous user

Anonymous

Recently, the attach feature poses two problems.

  1. It says that "attach" is deprecated and that we should use "%attach". Why?
  2. The real problem: "attach" and "%attach" now create a huge amount of stupid files in the folder. Why? How to prevent this?
  3. How could the Sage developers let such an annoying thing make it in a Sage release and, worse, not correct it in newer versions?

Thanks in advance!

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

ppurka gravatar image

Sage developers are aware of this regression. Please follow ticket 14169 and ticket 14523, and give some positive feedback in the tickets if you want/can.

Preview: (hide)
link
0

answered 11 years ago

Volker Braun gravatar image

updated 11 years ago

Its not fixed because YOU did nothing to help review the ticket ;-)

The preferred syntax is

attach('/path/to/filename.py')

since it is also valid Python syntax. Similar to the print operator going away in Python 3 and being replaced by an ordinary function.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 296 times

Last updated: Jun 23 '13