[Python-Dev] RE: [Python-checkins] python/dist/src/Objects listobject.c, 2.177, 2.178 (original) (raw)
Raymond Hettinger python at rcn.com
Fri Feb 13 21:41:52 EST 2004
- Previous message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects listobject.c, 2.177, 2.178
- Next message: [Python-Dev] Source encoding doubt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Neal Norwitz]
Missing the return -1; when listresize() fails?
Yes. Will fix.
In the following 2 for loops, the original code modified self->obsize. In the new version I don't notice obsize being updated. Given the context, I'm not sure if the behaviour is different or not between versions.
self->ob_size is now updated by list_resize() so the loop no longer needs to do the update. This is a nice improvement clients of list_resize() do not need to manage ob_size; rather, the just request the size they want and the data structure keeps its integrity.
Raymond
- Previous message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects listobject.c, 2.177, 2.178
- Next message: [Python-Dev] Source encoding doubt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]