[Python-ideas] `to_file()` method for strings

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Mar 23 00:13:07 EDT 2016


On Tue, Mar 22, 2016 at 11:32 PM, Nick Eubank <nickeubank at gmail.com> wrote:

> I output "single strings" to LaTeX all the time.
>

If you do this in an interactive session - take a look at ipython.  Its
%writefile [1] magic command is not quite what you want but close.  You may
also have a better chance getting a new feature in ipython than here.

If you do that from a script - stop doing that - and your script will run
faster.

[1]
https://ipython.org/ipython-doc/3/interactive/magics.html#cellmagic-writefile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160323/127ec5c2/attachment.html>


More information about the Python-ideas mailing list