[Python-Dev] [OT] implicit return values

Xavier Morel catch-all at masklinn.net
Wed Sep 2 11:46:31 CEST 2009

On 2 Sep 2009, at 00:10 , Greg Ewing wrote:
Le mardi 01 septembre 2009 à 15:09 +0200, Xavier Morel a écrit :
>>>> "We" are not Erlang, Smalltalk, OCaml or Haskell either, sadly.
> IIRC, the default return value of a Smalltalk method is
> self, not the last thing evaluated.
Methods yes (and that's one of the few Smalltalk design "features" I  
consider truly dumb, considering it has message cascading), but I was  
referring to blocks rather than methods and the return value of blocks  
is the last evaluated expression.

> (And no, that's not going to happen in Python either --
> the BDFL has rejected similar suggestions on previous
> occasions.)
I know.

More information about the Python-Dev mailing list