<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/abstract.c, branch v2.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/abstract.c?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/abstract.c?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-03-11T10:12:58Z</updated>
<entry>
<title>Probably should have merged the two checkins to this file (oh well).</title>
<updated>2002-03-11T10:12:58Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-11T10:12:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=43efb9a1afe553b6c215fbad6225474ef924c4bc'/>
<id>urn:sha1:43efb9a1afe553b6c215fbad6225474ef924c4bc</id>
<content type='text'>
backport jhylton's checkin of
    revision 2.98 of abstract.c

Fix leak of NotImplemented in previous checkin to PyNumber_Add().

If result == Py_NotImplemented, always DECREF it before assigning a
new value to result.
</content>
</entry>
<entry>
<title>backport jhylton's checkin of</title>
<updated>2002-03-11T10:11:46Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-11T10:11:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=244ca00bf084d17d8d1364458cfcd8b4ece4837e'/>
<id>urn:sha1:244ca00bf084d17d8d1364458cfcd8b4ece4837e</id>
<content type='text'>
    revision 2.97 of abstract.c

Fix for SF bug 516727: MyInt(2) + "3" -&gt; NotImplemented

PyNumber_Add() tries the nb_add slot first, then falls back to
sq_concat.  However, it didn't check the return value of sq_concat.
If sq_concat returns NotImplemented, raise the standard TypeError.
</content>
</entry>
<entry>
<title>Implement PyObject_DelItemString. Fixes #498915.</title>
<updated>2002-01-05T10:52:38Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-01-05T10:52:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f63438ad81bc41a2bece664610c0e04608d19a0b'/>
<id>urn:sha1:f63438ad81bc41a2bece664610c0e04608d19a0b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>PyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few</title>
<updated>2001-11-24T18:24:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-11-24T18:24:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=64585f6afb33ea907a22a365b4fdbec155e3da55'/>
<id>urn:sha1:64585f6afb33ea907a22a365b4fdbec155e3da55</id>
<content type='text'>
confusing error messages.  If a new-style class has no sequence or
mapping behavior, attempting to use the indexing notation with a
non-integer key would complain that the sequence index must be an
integer, rather than complaining that the operation is not supported.
</content>
</entry>
<entry>
<title>Add PyObject_CheckReadBuffer(), which returns true if its argument</title>
<updated>2001-11-09T21:59:42Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-09T21:59:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=89c3a22a2788cb85b89990543e33236cd60ba307'/>
<id>urn:sha1:89c3a22a2788cb85b89990543e33236cd60ba307</id>
<content type='text'>
supports the single-segment readable buffer interface.

Add documentation for this and other PyObject_XXXBuffer() calls.
</content>
</entry>
<entry>
<title>PyFunction_Call() did not check the result of PyObject_Repr() for NULL, and</title>
<updated>2001-11-01T20:26:12Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-11-01T20:26:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=573395a7a8163c38630c5262ed3910c279e4a767'/>
<id>urn:sha1:573395a7a8163c38630c5262ed3910c279e4a767</id>
<content type='text'>
should just avoid calling it in the first place to avoid waiting for a repr
of a large object like a dict or list.  The result of PyObject_Repr() was
being leaked as well.
Bugfix candidate!
</content>
</entry>
<entry>
<title>PyObject_CallFunctionObArgs() ---&gt; PyObject_CallFunctionObjArgs()</title>
<updated>2001-10-28T02:39:03Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-28T02:39:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b0c079e3e5793290db8651ea4edbbf6d4ba18218'/>
<id>urn:sha1:b0c079e3e5793290db8651ea4edbbf6d4ba18218</id>
<content type='text'>
PyObject_CallMethodObArgs() ---&gt; PyObject_CallMethodObjArgs()
</content>
</entry>
<entry>
<title>PyObject_CallFunction(), PyObject_CallMethod():  Make sure we do not touch</title>
<updated>2001-10-27T06:16:31Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-27T06:16:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b92cf067c63e3ed809f30ae51fdafc18c1db0c37'/>
<id>urn:sha1:b92cf067c63e3ed809f30ae51fdafc18c1db0c37</id>
<content type='text'>
the va_list until we are sure we have a format string and need to use it;
this avoid premature initialization and having to finalize it several
different places because of error returns.
</content>
</entry>
<entry>
<title>Added two new functions to conveniently call functions/methods from C.</title>
<updated>2001-10-26T16:21:32Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-26T16:21:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b421b8c19105d08b97122b7c84eec37ad83c6de4'/>
<id>urn:sha1:b421b8c19105d08b97122b7c84eec37ad83c6de4</id>
<content type='text'>
PyObject_CallFunctionObArgs() and PyObject_CallMethodObArgs() have the
advantage that no format strings need to be parsed.  The CallMethod
variant also avoids creating a new string object in order to retrieve
a method from an object as well.
</content>
</entry>
<entry>
<title>Generalize dictionary() to accept a sequence of 2-sequences.  At the</title>
<updated>2001-10-26T05:06:50Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-26T05:06:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1fc240e85150f5cb39502a87cc9a4a0a8cbe5ab0'/>
<id>urn:sha1:1fc240e85150f5cb39502a87cc9a4a0a8cbe5ab0</id>
<content type='text'>
outer level, the iterator protocol is used for memory-efficiency (the
outer sequence may be very large if fully materialized); at the inner
level, PySequence_Fast() is used for time-efficiency (these should
always be sequences of length 2).

dictobject.c, new functions PyDict_{Merge,Update}FromSeq2.  These are
wholly analogous to PyDict_{Merge,Update}, but process a sequence-of-2-
sequences argument instead of a mapping object.  For now, I left these
functions file static, so no corresponding doc changes.  It's tempting
to change dict.update() to allow a sequence-of-2-seqs argument too.

Also changed the name of dictionary's keyword argument from "mapping"
to "x".  Got a better name?  "mapping_or_sequence_of_pairs" isn't
attractive, although more so than "mosop" &lt;wink&gt;.

abstract.h, abstract.tex:  Added new PySequence_Fast_GET_SIZE function,
much faster than going thru the all-purpose PySequence_Size.

libfuncs.tex:
- Document dictionary().
- Fiddle tuple() and list() to admit that their argument is optional.
- The long-winded repetitions of "a sequence, a container that supports
  iteration, or an iterator object" is getting to be a PITA.  Many
  months ago I suggested factoring this out into "iterable object",
  where the definition of that could include being explicit about
  generators too (as is, I'm not sure a reader outside of PythonLabs
  could guess that "an iterator object" includes a generator call).
- Please check my curly braces -- I'm going blind &lt;0.9 wink&gt;.

abstract.c, PySequence_Tuple():  When PyObject_GetIter() fails, leave
its error msg alone now (the msg it produces has improved since
PySequence_Tuple was generalized to accept iterable objects, and
PySequence_Tuple was also stomping on the msg in cases it shouldn't
have even before PyObject_GetIter grew a better msg).
</content>
</entry>
</feed>
