[IPython-dev] what goes wrong with %%file
Thomas Kluyver
takowl at gmail.com
Wed May 15 17:51:40 EDT 2013
On 15 May 2013 22:42, Brian Granger <ellisonbg at gmail.com> wrote:
> I too think that writefile is my favorite so for. What about
> prompting on overwrite. I think Min and I are in favor of that - but
> I think this new name resolves some of the confusion so I am fine
> either way.
>
writefile gets my vote too. I'd side with not prompting - the name change
and the empty-cell protection should avoid the accidents we've seen, and I
think a prompt would get annoying if you're quickly re-running a notebook.
Commands to overwrite files in both Python and shell scripting don't
prompt, so arguably programmers are used to that behaviour (or should learn
to expect it). I don't feel strongly about this, though, so long as there's
an option to skip the prompt.
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130515/9dd4d3a3/attachment.html>
More information about the IPython-dev
mailing list