[Tutor] Making a Primary Number List generator

Steven D'Aprano steve at pearwood.info
Wed May 15 11:26:23 CEST 2013


On Wed, May 15, 2013 at 10:03:20AM +0100, Oscar Benjamin wrote:
> On 14 May 2013 17:11, Marc Tompkins <marc.tompkins at gmail.com> wrote:

> > Again, the return value of print() - e.g. success/failure - is 
> > separate from what print() actually prints.
> 
> 
> I was surprised by this so I've just tested it and checked the docs;
> the print() function does not return anything (i.e. it returns None).

I assumed Marc was talking hypothetically. A print function *could* 
return a result, even if Python's print function does not.


-- 
Steven


More information about the Tutor mailing list