Message292274
| 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:52 | serhiy.storchaka | set | recipients: + serhiy.storchaka, vstinner |
| 2017-04-25 16:51:52 | serhiy.storchaka | set | messageid: <1493139112.34.0.200828606997.issue30162@psf.upfronthosting.co.za> |
| 2017-04-25 16:51:52 | serhiy.storchaka | link | issue30162 messages |
| 2017-04-25 16:51:52 | serhiy.storchaka | create | |