Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Feb 20 01:30:26 EST 2010


In message <op.u8at0suda8ncjz at gnudebst>, Rhodri James wrote:

> In classic Pascal, a procedure was distinct from a function in that it had
> no return value.  The concept doesn't really apply in Python; there are no
> procedures in that sense, since if a function terminates without supplying
> an explicit return value it returns None.

If Python doesn’t distinguish between procedures and functions, why should 
it distinguish between statements and expressions?



More information about the Python-list mailing list