<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/abstract.h, 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/Include/abstract.h?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/abstract.h?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-01-05T10:52:38Z</updated>
<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>Fix SF bug [ #476852 ] Some bad macros in abstract.h</title>
<updated>2001-11-28T16:20:07Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-28T16:20:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7c7ee5f6f683cb895284122155bd830b0fd7c91e'/>
<id>urn:sha1:7c7ee5f6f683cb895284122155bd830b0fd7c91e</id>
<content type='text'>
Change macros as requested by Guido
</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>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>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>
<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>Implement PEP 238 in its (almost) full glory.</title>
<updated>2001-08-08T05:00:18Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-08T05:00:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4668b000a1d9113394941ad39875c827634feb49'/>
<id>urn:sha1:4668b000a1d9113394941ad39875c827634feb49</id>
<content type='text'>
This introduces:

- A new operator // that means floor division (the kind of division
  where 1/2 is 0).

- The "future division" statement ("from __future__ import division)
  which changes the meaning of the / operator to implement "true
  division" (where 1/2 is 0.5).

- New overloadable operators __truediv__ and __floordiv__.

- New slots in the PyNumberMethods struct for true and floor division,
  new abstract APIs for them, new opcodes, and so on.

I emphasize that without the future division statement, the semantics
of / will remain unchanged until Python 3.0.

Not yet implemented are warnings (default off) when / is used with int
or long arguments.

This has been on display since 7/31 as SF patch #443474.

Flames to /dev/null.
</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>Reimplement PySequence_Contains() and instance_contains(), so they work</title>
<updated>2001-05-05T21:05:01Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-05-05T21:05:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cb8d368b824a38a0b04598ba2bcd107d6aae3595'/>
<id>urn:sha1:cb8d368b824a38a0b04598ba2bcd107d6aae3595</id>
<content type='text'>
safely together and don't duplicate logic (the common logic was factored
out into new private API function _PySequence_IterContains()).
Visible change:
    some_complex_number  in  some_instance
no longer blows up if some_instance has __getitem__ but neither
__contains__ nor __iter__.  test_iter changed to ensure that remains true.
</content>
</entry>
</feed>
