<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects, branch v2.2a3</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?h=v2.2a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects?h=v2.2a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-09-08T04:00:12Z</updated>
<entry>
<title>Generalize operator.indexOf (PySequence_Index) to work with any</title>
<updated>2001-09-08T04:00:12Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-08T04:00:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=16a77adfbd745c202878fabb0b921514fec7ca16'/>
<id>urn:sha1:16a77adfbd745c202878fabb0b921514fec7ca16</id>
<content type='text'>
iterable object.  I'm not sure how that got overlooked before!

Got rid of the internal _PySequence_IterContains, introduced a new
internal _PySequence_IterSearch, and rewrote all the iteration-based
"count of", "index of", and "is the object in it or not?" routines to
just call the new function.  I suppose it's slower this way, but the
code duplication was getting depressing.
</content>
</entry>
<entry>
<title>PyClass_New(): put the extended Don Beaudry hook back in.  When one of</title>
<updated>2001-09-07T21:08:32Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-07T21:08:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=28d80b1058c73b296f41861ac9f39534c7a3ee4b'/>
<id>urn:sha1:28d80b1058c73b296f41861ac9f39534c7a3ee4b</id>
<content type='text'>
the base classes is not a classic class, and its class (the metaclass)
is callable, call the metaclass to do the deed.

One effect of this is that, when mixing classic and new-style classes
amongst the bases of a class, it doesn't matter whether the first base
class is a classic class or not: you will always get the error
"TypeError: metatype conflict among bases".  (Formerly, with a classic
class first, you'd get "TypeError: PyClass_New: base must be a class".)

Another effect is that multiple inheritance from ExtensionClass.Base,
with a classic class as the first class, transfers control to the
ExtensionClass.Base class.  This is what we need for SF #443239 (and
also for running Zope under 2.2a4, before ExtensionClass is replaced).
</content>
</entry>
<entry>
<title>PySequence_Check(), PyMapping_Check(): only return true if the</title>
<updated>2001-09-07T20:20:11Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-07T20:20:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8700b4281af0561d9aafd3cc14c44d79c2a0934b'/>
<id>urn:sha1:8700b4281af0561d9aafd3cc14c44d79c2a0934b</id>
<content type='text'>
corresponding "getitem" operation (sq_item or mp_subscript) is
implemented.  I realize that "sequence-ness" and "mapping-ness" are
poorly defined (and the tests may still be wrong for user-defined
instances, which always have both slots filled), but I believe that a
sequence that doesn't support its getitem operation should not be
considered a sequence.  All other operations are optional though.

For example, the ZODB BTree tests crashed because PySequence_Check()
returned true for a dictionary!  (In 2.2, the dictionary type has a
tp_as_sequence pointer, but the only field filled is sq_contains, so
you can write "if key in dict".)  With this fix, all standalone ZODB
tests succeed.
</content>
</entry>
<entry>
<title>PyType_IsSubtype(): test tp_flags for HAVE_CLASS bit before accessing</title>
<updated>2001-09-07T18:52:13Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-07T18:52:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9478d07ee71161a8098da53b4b902899f36bf6ba'/>
<id>urn:sha1:9478d07ee71161a8098da53b4b902899f36bf6ba</id>
<content type='text'>
a-&gt;tp_mro.  If a doesn't have class, it's considered a subclass only
of itself or of 'object'.

This one fix is enough to prevent the ExtensionClass test suite from
dumping core, but that doesn't say much (it's a rather small test
suite).  Also note that for ExtensionClass-defined types, a different
subclass test may be needed.  But I haven't checked whether
PyType_IsSubtype() is actually used in situations where this matters
-- probably it doesn't, since we also don't check for classic classes.
</content>
</entry>
<entry>
<title>long_true_divide:  reliably force underflow to 0 when the denominator</title>
<updated>2001-09-06T21:59:14Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-06T21:59:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e56ed9ba1513b3719ce0fe8b85da6b3367d7da64'/>
<id>urn:sha1:e56ed9ba1513b3719ce0fe8b85da6b3367d7da64</id>
<content type='text'>
has more bits than the numerator than can be counted in a C int (yes,
that's unlikely, and no, I'm not adding a test case with a 2 gigabit
long).
</content>
</entry>
<entry>
<title>Rename 'getset' to 'property'.</title>
<updated>2001-09-06T21:56:42Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-06T21:56:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8bce4acb17ee7146c5736ad020ea0e129bd7f67b'/>
<id>urn:sha1:8bce4acb17ee7146c5736ad020ea0e129bd7f67b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert parts of patch #453627, documenting the resulting test failures</title>
<updated>2001-09-06T08:16:17Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-09-06T08:16:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=387c547fd38d321e42bf202c166e9403e7ee9b61'/>
<id>urn:sha1:387c547fd38d321e42bf202c166e9403e7ee9b61</id>
<content type='text'>
instead.
</content>
</entry>
<entry>
<title>Enable large file support on Win32 systems.</title>
<updated>2001-09-06T00:32:15Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-06T00:32:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6e13a562ae01a962612ca76f9afcc7211240236e'/>
<id>urn:sha1:6e13a562ae01a962612ca76f9afcc7211240236e</id>
<content type='text'>
Curious:  the MS docs say stati64 etc are supported even on Win95, but
Win95 doesn't support a filesystem that allows partitions &gt; 2 Gb.

test_largefile:  This was opening its test file in text mode.  I have no
idea how that worked under Win64, but it sure needs binary mode on Win98.
BTW, on Win98 test_largefile runs quickly (under a second).
</content>
</entry>
<entry>
<title>Better error msg for 3-arg pow with a float argument.</title>
<updated>2001-09-05T23:49:24Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-05T23:49:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97f4a33e125dc14c72070bbf38f723aaa26b9df7'/>
<id>urn:sha1:97f4a33e125dc14c72070bbf38f723aaa26b9df7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add PyMethod_Function(), PyMethod_Self(), PyMethod_Class() back.</title>
<updated>2001-09-05T22:52:50Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-05T22:52:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b479dc561c1e778c892f04d1e9673400e95d7e78'/>
<id>urn:sha1:b479dc561c1e778c892f04d1e9673400e95d7e78</id>
<content type='text'>
While not even documented, they were clearly part of the C API,
there's no great difficulty to support them, and it has the cool
effect of not requiring any changes to ExtensionClass.c.
</content>
</entry>
</feed>
