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 serhiy.storchaka, vstinner
Date 2017-04-25.16:51:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493139112.34.0.200828606997.issue30162@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch makes the empty tuple be allocated in static memory rather than dynamic memory, expose a reference to it as _PyTuple_Empty, and makes PyTuple_New(0) never raising exceptions. This allows to simplify the code. No longer need to call PyTuple_New(0), check it's result for errors, and clean up it after the use, you just can use a borrowed reference _PyTuple_Empty.

_PyTuple_Empty is for CPython internal use only.
History
Date User Action Args
2017-04-25 16:51:52serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2017-04-25 16:51:52serhiy.storchakasetmessageid: <1493139112.34.0.200828606997.issue30162@psf.upfronthosting.co.za>
2017-04-25 16:51:52serhiy.storchakalinkissue30162 messages
2017-04-25 16:51:52serhiy.storchakacreate