[IPython-dev] what goes wrong with %%file
W. Trevor King
wking at tremily.us
Sun May 12 17:44:47 EDT 2013
On Sun, May 12, 2013 at 11:36:16PM +0200, Zoltán Vörös wrote:
> Couldn't %%file accept an argument (beyond the filename), which would
> indicate what kind of action is going to be taken? Like
> %%file overwrite somefile
>
> %%file append somefile
That's effectively what it already does, except it uses `--force`
(with [1]) and `--append` instead of `overwrite` and `append`. The
problem was the default `--force`, which is fixed in #3313.
The ongoing %%overwrite discussion is about trying to increase the
intuitive understanding to make the command's effect easier to
remember.
Cheers,
Trevor
[1]: https://github.com/ipython/ipython/pull/3313
--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130512/696090bf/attachment.sig>
More information about the IPython-dev
mailing list