[issue46282] return value of builtins is not clearly indicated

James Gerity report at bugs.python.org
Tue Jan 25 13:12:25 EST 2022


James Gerity <snoop.jedi at gmail.com> added the comment:

> advertising that all functions default to returning None

This is already communicated in § 4.7 ("Defining Functions") of the official tutorial. 

I think it would be a good idea to revise that section so that this property of functions is a little more clear, but that isn't the scope of this ticket.

The title change reflects my intent to submit a PR that adds a hint to the builtins doc.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46282>
_______________________________________


More information about the Python-bugs-list mailing list