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 barry
Recipients SnoopJeDi, barry, docs@python, steven.daprano
Date 2022-01-06.16:40:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think it does a better service to users to explain how Python returns None implicitly if a function doesn't have any other explicit return value.  If the print() docs had this note, it would be confusing why other similar functions don't.

It's also worth explaining that when a function is designed to *explicitly* return None in certain cases (e.g. dict.get()) that it shouldn't do so implicitly, but should include an explicit `return None` for readability.
Date User Action Args
2022-01-06 16:40:33barrysetrecipients: + barry, steven.daprano, docs@python, SnoopJeDi
2022-01-06 16:40:33barrysetmessageid: <>
2022-01-06 16:40:33barrylinkissue46282 messages
2022-01-06 16:40:33barrycreate