This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author SnoopJeDi
Recipients SnoopJeDi, barry, docs@python, eric.araujo, steven.daprano, terry.reedy
Date 2022-01-25.19:42:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643139723.85.0.782632797697.issue46282@roundup.psfhosted.org>
In-reply-to
Content
My thought was to add something like this to the top of functions.rst:

```
Note that some of the functions listed here have the :ref:`default return value <tut-defining-functions> of ``None``.
```

For reference, the builtins this applies to are:

* breakpoint()
* delattr()
* exec()
* help()
* print()
* setattr()

Which makes me wonder if the hint is even worth having, since it's so few of them.

Note that of these, exec() does what this ticket originally proposed for print() - i.e. it explicitly says that the function returns None.
History
Date User Action Args
2022-01-25 19:42:03SnoopJeDisetrecipients: + SnoopJeDi, barry, terry.reedy, eric.araujo, steven.daprano, docs@python
2022-01-25 19:42:03SnoopJeDisetmessageid: <1643139723.85.0.782632797697.issue46282@roundup.psfhosted.org>
2022-01-25 19:42:03SnoopJeDilinkissue46282 messages
2022-01-25 19:42:03SnoopJeDicreate