[Python-ideas] except expression

Ethan Furman ethan at stoneleaf.us
Mon Feb 17 06:05:01 CET 2014


On 02/16/2014 08:04 PM, Chris Angelico wrote:
> On Mon, Feb 17, 2014 at 1:47 PM, Ethan Furman 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.

Precisely.

--
~Ethan~


More information about the Python-ideas mailing list