<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/listobject.c, branch v2.2.1</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/listobject.c?h=v2.2.1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/listobject.c?h=v2.2.1'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-03-28T20:36:50Z</updated>
<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>
<entry>
<title>Patch #427190: Implement and use METH_NOARGS and METH_O.</title>
<updated>2001-08-16T13:15:00Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-08-16T13:15:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e3eb1f2b2320bceb10a763ec8691200b85ec287a'/>
<id>urn:sha1:e3eb1f2b2320bceb10a763ec8691200b85ec287a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge of descr-branch back into trunk.</title>
<updated>2001-08-02T04:15:00Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-02T04:15:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d6c1a35e08b95a83dbe47dbd9e6474daff00354'/>
<id>urn:sha1:6d6c1a35e08b95a83dbe47dbd9e6474daff00354</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #439104: Tuple richcompares has code-typo.</title>
<updated>2001-07-06T17:45:43Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-06T17:45:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6ee42348025611f537b80d5dbf55f4d5b9bd58f2'/>
<id>urn:sha1:6ee42348025611f537b80d5dbf55f4d5b9bd58f2</id>
<content type='text'>
Symptom:  (1, 2, 3) &lt;= (1, 2) returned 1.
This was already fixed in CVS for tuples, but an isomorphic error was in
the list richcompare code.
</content>
</entry>
<entry>
<title>SF bug 433228: repr(list) woes when len(list) big.</title>
<updated>2001-06-16T05:11:17Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-16T05:11:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a7259597f1f9ef389012010d7b8a02ebcf7396e7'/>
<id>urn:sha1:a7259597f1f9ef389012010d7b8a02ebcf7396e7</id>
<content type='text'>
Gave Python linear-time repr() implementations for dicts, lists, strings.
This means, e.g., that repr(range(50000)) is no longer 50x slower than
pprint.pprint() in 2.2 &lt;wink&gt;.

I don't consider this a bugfix candidate, as it's a performance boost.

Added _PyString_Join() to the internal string API.  If we want that in the
public API, fine, but then it requires runtime error checks instead of
asserts.
</content>
</entry>
<entry>
<title>Change list.extend() error msgs and NEWS to reflect that list.extend()</title>
<updated>2001-05-26T19:37:54Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-05-26T19:37:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1af03e98d9ab87b4e9aa76caafba0dbc52cfd750'/>
<id>urn:sha1:1af03e98d9ab87b4e9aa76caafba0dbc52cfd750</id>
<content type='text'>
now takes any iterable argument, not only sequences.

NEEDS DOC CHANGES -- but I don't think we settled on a concise way to
say this stuff.
</content>
</entry>
</feed>
