<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/listobject.c, branch 2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/listobject.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/listobject.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-05-03T10:53:51Z</updated>
<entry>
<title>Patch #708604: Check more function results.</title>
<updated>2003-05-03T10:53:51Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2003-05-03T10:53:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7aed4a33acd1758a65e2980d48564b49a18a977c'/>
<id>urn:sha1:7aed4a33acd1758a65e2980d48564b49a18a977c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF Bug 645777:  list.extend() works with any iterable and is no longer</title>
<updated>2002-12-29T05:59:09Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-12-29T05:59:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=398c4ed1027d68e38e50e74ff30adca3f66d8c97'/>
<id>urn:sha1:398c4ed1027d68e38e50e74ff30adca3f66d8c97</id>
<content type='text'>
experimental.
</content>
</entry>
<entry>
<title>Darn!  Don't divide by zero.  Bad fix. :-)</title>
<updated>2002-10-11T23:39:54Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-10-11T23:39:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c00b63a87251df0b0067fcacf1f523f368c03ed7'/>
<id>urn:sha1:c00b63a87251df0b0067fcacf1f523f368c03ed7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Backport listobject.c 2.137 and tupleobject.c 2.75:</title>
<updated>2002-10-11T21:13:14Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-10-11T21:13:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3974ce3a313875b15fa6825a7acb4a22b8b27645'/>
<id>urn:sha1:3974ce3a313875b15fa6825a7acb4a22b8b27645</id>
<content type='text'>
Add checks for size overflow on list*n, list+list, tuple+tuple.
</content>
</entry>
<entry>
<title>Closes: #556025 seg fault when doing list(xrange(1e9))</title>
<updated>2002-05-23T13:02:37Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-05-23T13:02:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=81a09965d7131f25cc15fa4dca92e842e87e55d1'/>
<id>urn:sha1:81a09965d7131f25cc15fa4dca92e842e87e55d1</id>
<content type='text'>
A MemoryError is now raised when the list cannot be created.
There is a test, but as the comment says, it really only
works for 32 bit systems.  I don't know how to improve
the test for other systems (ie, 64 bit or systems
where the data size != addressable size,
e.g. 64 bit data, but 48 bit addressable memory)
</content>
</entry>
<entry>
<title>Backport to 2.2.1:</title>
<updated>2002-03-28T20:36:50Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-03-28T20:36:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9ff1cf05fbcee1b98a4fc53ed12dc9b134a26f2f'/>
<id>urn:sha1:9ff1cf05fbcee1b98a4fc53ed12dc9b134a26f2f</id>
<content type='text'>
This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction).

The fix makes it possible to call PyObject_GC_UnTrack() more than once
on the same object, and then move the PyObject_GC_UnTrack() call to
*before* the trashcan code is invoked.

BUGFIX CANDIDATE!
</content>
</entry>
<entry>
<title>Fix of SF bug #475877 (Mutable subtype instances are hashable).</title>
<updated>2001-12-03T16:32:18Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-03T16:32:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dbb53d99189075522eecc87723292c85aee15388'/>
<id>urn:sha1:dbb53d99189075522eecc87723292c85aee15388</id>
<content type='text'>
Rather than tweaking the inheritance of type object slots (which turns
out to be too messy to try), this fix adds a __hash__ to the list and
dict types (the only mutable types I'm aware of) that explicitly
raises an error.  This has the advantage that list.__hash__([]) also
raises an error (previously, this would invoke object.__hash__([]),
returning the argument's address); ditto for dict.__hash__.

The disadvantage for this fix is that 3rd party mutable types aren't
automatically fixed.  This should be added to the rules for creating
subclassable extension types: if you don't want your object to be
hashable, add a tp_hash function that raises an exception.

Also, it's possible that I've forgotten about other mutable types for
which this should be done.
</content>
</entry>
<entry>
<title>Enable GC for new-style instances.  This touches lots of files, since</title>
<updated>2001-10-05T20:51:39Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-05T20:51:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9475a2310d9cdec4b4c36dee8bf30c72605ae928'/>
<id>urn:sha1:9475a2310d9cdec4b4c36dee8bf30c72605ae928</id>
<content type='text'>
many types were subclassable but had a xxx_dealloc function that
called PyObject_DEL(self) directly instead of deferring to
self-&gt;ob_type-&gt;tp_free(self).  It is permissible to set tp_free in the
type object directly to _PyObject_Del, for non-GC types, or to
_PyObject_GC_Del, for GC types.  Still, PyObject_DEL was a tad faster,
so I'm fearing that our pystone rating is going down again.  I'm not
sure if doing something like

void xxx_dealloc(PyObject *self)
{
	if (PyXxxCheckExact(self))
		PyObject_DEL(self);
	else
		self-&gt;ob_type-&gt;tp_free(self);
}

is any faster than always calling the else branch, so I haven't
attempted that -- however those types whose own dealloc is fancier
(int, float, unicode) do use this pattern.
</content>
</entry>
<entry>
<title>Give the internal immutable list type .extend and .pop methods (they</title>
<updated>2001-08-30T06:15:32Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-30T06:15:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=52e0717215d87859bebc1437a4f169807a1282ef'/>
<id>urn:sha1:52e0717215d87859bebc1437a4f169807a1282ef</id>
<content type='text'>
"should have" been added here when they were added to lists).
</content>
</entry>
<entry>
<title>Use new GC API.</title>
<updated>2001-08-29T23:54:21Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2001-08-29T23:54:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e83c00efd06dc8380d481f6c5f92d8c274ce6bd2'/>
<id>urn:sha1:e83c00efd06dc8380d481f6c5f92d8c274ce6bd2</id>
<content type='text'>
</content>
</entry>
</feed>
