Message109497
On Wed, Jul 7, 2010 at 4:19 PM, Benjamin Peterson
<report@bugs.python.org> wrote:
>> - PyStructSequence_New does not fill ob_item array with NULLs.
>
> I'm not sure it really matters, since the fields should always be
> filled in, but I suppose it can't hurt...
The following pattern is quite common:
tuple = PyTuple_New(size):
for (i = 0; i < size; ++i) {
item = create_item(...);
if (item == NULL)
goto fail;
}
...
fail:
Py_DECREF(tuple);
I don't think this should be outlawed. |
|
Date |
User |
Action |
Args |
2010-07-07 20:28:05 | belopolsky | set | recipients:
+ belopolsky, rhettinger, pitrou, eric.smith, benjamin.peterson, ezio.melotti, Arfrever |
2010-07-07 20:28:03 | belopolsky | link | issue8413 messages |
2010-07-07 20:28:03 | belopolsky | create | |
|