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 serhiy.storchaka
Recipients arhadthedev, larry, serhiy.storchaka
Date 2022-03-27.06:26:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648362392.95.0.637366844908.issue47128@roundup.psfhosted.org>
In-reply-to
Content
It is simpler and faster to return NULL than call PyErr_Occurred(). There is a special macro PY_RETURN_NONE, so there is no problem with returning None either.

I do not think it would make the code better.
History
Date User Action Args
2022-03-27 06:26:33serhiy.storchakasetrecipients: + serhiy.storchaka, larry, arhadthedev
2022-03-27 06:26:32serhiy.storchakasetmessageid: <1648362392.95.0.637366844908.issue47128@roundup.psfhosted.org>
2022-03-27 06:26:32serhiy.storchakalinkissue47128 messages
2022-03-27 06:26:32serhiy.storchakacreate