<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/listobject.c, branch v2.4.4</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/listobject.c?h=v2.4.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/listobject.c?h=v2.4.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-10-04T10:13:32Z</updated>
<entry>
<title>A review of overflow-detecting code in the 2.4 branch.</title>
<updated>2006-10-04T10:13:32Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2006-10-04T10:13:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b2d0f342404de73905e4febb8c202f41fc0f654f'/>
<id>urn:sha1:b2d0f342404de73905e4febb8c202f41fc0f654f</id>
<content type='text'>
* unified the way intobject, longobject and mystrtoul handle
  values around -sys.maxint-1.

* in general, trying to entierely avoid overflows in any computation
  involving signed ints or longs is extremely involved.  Fixed a few
  simple cases where a compiler might be too clever (but that's all
  guesswork).

* more overflow checks against bad data in marshal.c.
</content>
</entry>
<entry>
<title>[Backport r51230 | neal.norwitz]</title>
<updated>2006-10-03T19:07:06Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-03T19:07:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=59e0e1e39541866b2897c5d1002d49aedf79f393'/>
<id>urn:sha1:59e0e1e39541866b2897c5d1002d49aedf79f393</id>
<content type='text'>
Check return of PyMem_MALLOC (garbage) is non-NULL.
Check seq in both portions of if/else.

Klocwork #289-290.
</content>
</entry>
<entry>
<title>[Backport rev. 46878 by neal.norwitz]</title>
<updated>2006-09-29T18:22:07Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-09-29T18:22:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=942f75df605c2ae17ae6b7a9a9eecc418d19fc39'/>
<id>urn:sha1:942f75df605c2ae17ae6b7a9a9eecc418d19fc39</id>
<content type='text'>
Don't leak the list object if there's an error allocating the item
storage.  Backport candidate.
</content>
</entry>
<entry>
<title>SF bug #1242657:   list(obj) can swallow KeyboardInterrupt</title>
<updated>2005-08-21T11:09:58Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-08-21T11:09:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9314d3261d5b81dca1a997a698b5d01f6a04299e'/>
<id>urn:sha1:9314d3261d5b81dca1a997a698b5d01f6a04299e</id>
<content type='text'>
Fix over-aggressive PyErr_Clear().  The same code fragment appears in
various guises in list.extend(), map(), filter(), zip(), and internally
in PySequence_Tuple().
</content>
</entry>
<entry>
<title>Finalize the freelist of list objects.</title>
<updated>2004-10-07T03:58:07Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-10-07T03:58:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fb09f0e85cd75ec46700562687a9da3063ff0b7c'/>
<id>urn:sha1:fb09f0e85cd75ec46700562687a9da3063ff0b7c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Checkin Tim's fix to an error discussed on python-dev.</title>
<updated>2004-09-26T19:24:20Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-26T19:24:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=aa241e014979612e2c8851bf9b12c16bcc07b161'/>
<id>urn:sha1:aa241e014979612e2c8851bf9b12c16bcc07b161</id>
<content type='text'>
Also, add a testcase.

Formerly, the list_extend() code used several local variables to remember
its state across iterations.  Since an iteration could call arbitrary
Python code, it was possible for the list state to be changed.  The new
code uses dynamic structure references instead of C locals.  So, they
are always up-to-date.

After list_resize() is called, its size has been updated but the new
cells are filled with NULLs.  These needed to be filled before arbitrary
iteration code was called; otherwise, that code could attempt to modify
a list that was in a semi-invalid state.  The solution was to change
the ob-&gt;size field back to a value reflecting the actual number of valid
cells.
</content>
</entry>
<entry>
<title>SF #1022910: Conserve memory with list.pop()</title>
<updated>2004-09-12T19:53:07Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-12T19:53:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a84f3abb9ed70a0b13181698fd8c270dd4abbb88'/>
<id>urn:sha1:a84f3abb9ed70a0b13181698fd8c270dd4abbb88</id>
<content type='text'>
The list resizing scheme only downsized when more than 16 elements were
removed in a single step:  del a[100:120].   As a result, the list would
never shrink when popping elements off one at a time.

This patch makes it shrink whenever more than half of the space is unused.

Also, at Tim's suggestion, renamed _new_size to new_allocated.  This makes
the code easier to understand.
</content>
</entry>
<entry>
<title>Typo fix: 'comparisions' is not a word</title>
<updated>2004-09-10T12:59:54Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2004-09-10T12:59:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=55be9eab3874aa93dccdfcf3df4838e25e598cc4'/>
<id>urn:sha1:55be9eab3874aa93dccdfcf3df4838e25e598cc4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF patch #1005778, Fix seg fault if list object is modified during list.index()</title>
<updated>2004-08-13T03:18:29Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2004-08-13T03:18:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f076953eb13caf629c81c3656cc0f178c7a91b1d'/>
<id>urn:sha1:f076953eb13caf629c81c3656cc0f178c7a91b1d</id>
<content type='text'>
Backport candidate
</content>
</entry>
<entry>
<title>Previous commit was viewed as "perverse".  Changed to just cast the unused</title>
<updated>2004-08-08T21:21:18Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2004-08-08T21:21:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=651dd52b3ac247fe4a4f18231593a2da96ce8a68'/>
<id>urn:sha1:651dd52b3ac247fe4a4f18231593a2da96ce8a68</id>
<content type='text'>
variable to void..

Thanks to Sjoerd Mullender for the suggested change.
</content>
</entry>
</feed>
