24 Mar
2008
24 Mar
'08
12:52 a.m.
What is the precise specification of the builtin "print" function.
Does it call "str", or does it just behave as if the builtin str had
been called?
In 2.5, the print statement ignores any overrides of the str builtin,
but I'm not sure whether a _function_ should -- and I do think it
should be specified.
-jJ
On 3/21/08, georg.brandl
New Revision: 61709
==============================================================================
+++ python/trunk/Doc/library/functions.rst Fri Mar 21 20:37:57 2008 @@ -817,6 +817,33 @@
...
+.. function:: print([object, ...][, sep=' '][, end='\n'][, file=sys.stdout]) ...
+ All non-keyword arguments are converted to strings like :func:`str` does