[Tutor] Making a Primary Number List generator

Marc Tompkins marc.tompkins at gmail.com
Thu May 16 01:18:21 CEST 2013


On Wed, May 15, 2013 at 3:52 PM, Marc Tompkins <marc.tompkins at gmail.com>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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130515/d2c89c0a/attachment.html>


More information about the Tutor mailing list