On Wed, May 15, 2013 at 3:52 PM, Marc Tompkins <[email protected]>wrote:
> I was thinking along the lines of an optional parameter ("verbose" or
> something similar), so print() would supply a return value if you asked it
> to but keep stumm if you didn't.
>
After I hit Send, I thought of the obvious problem... you'd have to know
ahead of time which version of print() was available, because you'll get a
TypeError if you pass undefined keyword arguments to print().
On the other hand, it'd be a quickie to do that test at the top of your
code...
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor