a little trap revealed (was Re: Let's Talk About Lambda Functions!)
Michele Simionato
mis6 at pitt.edu
Sun Jul 28 10:52:42 EDT 2002
Now I see the source of my confusion. I thought the print "statement"
was
actually an expression with result None. However in Python
result=print("something")
gives a syntax error. Then my question is: why Guido decided to keep
the distinction between statements (with no value returned) and
expressions ? what are the advantages ? is it a matter of personal
taste ? Sorry if these
questions sounds naive,
Michele
More information about the Python-list
mailing list