Closed GoogleCodeExporter closed 8 years ago
thanks for the report! yes, this is a bug, albeit not one that has high
priority at
the moment. the problem, however, is not the dynamic argument to p(), because
it is
not really dynamic but generic (as in C++). the problem is that I wrote print
support
without considering a generic context. I can fix this, but probably won't get
around
to it anytime soon.. note that the following works, where the print statement is
outside the generic function:
def p(msg):
return msg
print p(15)
print p("hello")
Original comment by mark.duf...@gmail.com
on 25 Feb 2008 at 2:31
Original comment by mark.duf...@gmail.com
on 25 Feb 2008 at 2:32
as part of string-formatting/printing improvements, I made print() generate its
own
format string.. which means this code now works :-)
thanks again for reporting!
Original comment by mark.duf...@gmail.com
on 7 Nov 2008 at 2:57
Original issue reported on code.google.com by
boulton.rj@gmail.com
on 24 Feb 2008 at 1:47