[IPython-dev] Getting rid of "print" in ipython
Hans Meine
hans_meine@gmx....
Wed Jul 9 12:00:51 CDT 2008
On Mittwoch 09 Juli 2008, Edward K. Ream wrote:
> On Wed, Jul 9, 2008 at 9:59 AM, Hans Meine <hans_meine@gmx.net> wrote:
> > What are those arguments?
>
> http://www.python.org/dev/peps/pep-3105/
>
> def print(*args, sep=' ', end='\n', file=None)
OK, so this is not really surprising, but I don't see which of the arguments
could be needed in IPython. Actually, I like string interpolation even more
than passing separate args, and one could even discuss the \n (e.g. whether
to append it automatically or be explicit about it), but file is certainly
not needed (it's up to the frontend IMO).
So I would really propose to just use a minimum wrapper around
sys.stdout/err.write, which is exactly what iplib already offers. :-)
--
Ciao, / / .o.
/--/ ..o
/ / ANS ooo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ipython.scipy.org/pipermail/ipython-dev/attachments/20080709/3c67d9cc/attachment.bin
More information about the IPython-dev
mailing list