[Python-ideas] except expression

Chris Angelico rosuav at gmail.com
Mon Feb 17 05:04:30 CET 2014


On Mon, Feb 17, 2014 at 1:47 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 02/15/2014 10:11 AM, Steven D'Aprano wrote:
>>
>>
>> Certainly not! pass implies that *no return result is generated at all*,
>> [...]
>
>
> Don't be silly.
>
> def have_a_mint(some, args, here):
>     # flesh this out later
>     pass
>
> Does anybody really think that that function will not return None?

Of course it'll return None, but that's nothing to do with the 'pass'.
The keyword 'pass' doesn't generate any return result at all.

ChrisA


More information about the Python-ideas mailing list