<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/dictobject.h, branch v2.6.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/dictobject.h?h=v2.6.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/dictobject.h?h=v2.6.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2007-12-19T02:37:44Z</updated>
<entry>
<title>#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.</title>
<updated>2007-12-19T02:37:44Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2007-12-19T02:37:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e93237dfcc4ee4feee62adafb4e7899487ca864b'/>
<id>urn:sha1:e93237dfcc4ee4feee62adafb4e7899487ca864b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Give meaning to the oparg for BUILD_MAP:  estimated size of the dictionary.</title>
<updated>2007-12-18T21:24:09Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2007-12-18T21:24:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd7ed407d79b797e20d0a6fe69e18f9ba9354979'/>
<id>urn:sha1:fd7ed407d79b797e20d0a6fe69e18f9ba9354979</id>
<content type='text'>
Allows dictionaries to be pre-sized (upto 255 elements) saving time lost
to re-sizes with their attendant mallocs and re-insertions.

Has zero effect on small dictionaries (5 elements or fewer), a slight
benefit for dicts upto 22 elements (because they had to resize once
anyway), and more benefit for dicts upto 255 elements (saving multiple
resizes during the build-up and reducing the number of collisions on
the first insertions).  Beyond 255 elements, there is no addional benefit.
</content>
</entry>
<entry>
<title>PEP 3123: Provide forward compatibility with Python 3.0, while keeping</title>
<updated>2007-07-21T06:55:02Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2007-07-21T06:55:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6819210b9e4e5719a6f7f9c1725f8fa70a8936f6'/>
<id>urn:sha1:6819210b9e4e5719a6f7f9c1725f8fa70a8936f6</id>
<content type='text'>
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
</content>
</entry>
<entry>
<title>Variation of patch # 1624059 to speed up checking if an object is a subclass</title>
<updated>2007-02-25T19:44:48Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2007-02-25T19:44:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ee3a1b5244e60566c5d5c8f6a1ea4b381de99f1c'/>
<id>urn:sha1:ee3a1b5244e60566c5d5c8f6a1ea4b381de99f1c</id>
<content type='text'>
of some of the common builtin types.

Use a bit in tp_flags for each common builtin type.  Check the bit
to determine if any instance is a subclass of these common types.
The check avoids a function call and O(n) search of the base classes.
The check is done in the various Py*_Check macros rather than calling
PyType_IsSubtype().

All the bits are set in tp_flags when the type is declared
in the Objects/*object.c files because PyType_Ready() is not called
for all the types.  Should PyType_Ready() be called for all types?
If so and the change is made, the changes to the Objects/*object.c files
can be reverted (remove setting the tp_flags).  Objects/typeobject.c
would also have to be modified to add conditions
for Py*_CheckExact() in addition to each the PyType_IsSubtype check.
</content>
</entry>
<entry>
<title>Extend work on revision 52962:  Eliminate redundant calls to PyObject_Hash().</title>
<updated>2007-02-19T02:03:19Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2007-02-19T02:03:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d6fc72a5ae27048dae56c773896ccbd6152d9b9b'/>
<id>urn:sha1:d6fc72a5ae27048dae56c773896ccbd6152d9b9b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert relevant dict internals to Py_ssize_t.</title>
<updated>2006-05-30T04:16:25Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-05-30T04:16:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b10f7e0cbacad9be6375f0e6dbf70cf18574e6b'/>
<id>urn:sha1:9b10f7e0cbacad9be6375f0e6dbf70cf18574e6b</id>
<content type='text'>
I don't have a box with nearly enough RAM, or an OS,
that could get close to tickling this, though (requires
a dict w/ at least 2**31 entries).
</content>
</entry>
<entry>
<title>Merge ssize_t branch.</title>
<updated>2006-02-15T17:27:45Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-15T17:27:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18e165558b24d29e7e0ca501842b9236589b012a'/>
<id>urn:sha1:18e165558b24d29e7e0ca501842b9236589b012a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix name problem in previous checkin: Dict not List</title>
<updated>2003-12-26T17:17:49Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-12-26T17:17:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=87c1afa057f795cecf197d9d2ec09e8e097b2601'/>
<id>urn:sha1:87c1afa057f795cecf197d9d2ec09e8e097b2601</id>
<content type='text'>
</content>
</entry>
<entry>
<title>At 2.2, the Py&lt;type&gt;_Check() family of API functions (macros) changed</title>
<updated>2003-12-26T00:20:53Z</updated>
<author>
<name>Andrew MacIntyre</name>
<email>andymac@bullseye.apana.org.au</email>
</author>
<published>2003-12-26T00:20:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e99990f9e1b63ff10e18ed31359f774376b41968'/>
<id>urn:sha1:e99990f9e1b63ff10e18ed31359f774376b41968</id>
<content type='text'>
semantics to include subtypes.  Most concrete object APIs then had
a Py&lt;type&gt;_CheckExact() macro added to test for an object's type
not including subtypes.

The PyDict_CheckExact() macro wasn't created at that time, so I've added
it for API completeness/symmetry - even though nobody has complained
about its absence in the time since 2.2 was released.

Not a backport candidate.
</content>
</entry>
<entry>
<title>reverting 2.29: the patch was Ok, but the commit msg wrong</title>
<updated>2003-12-26T00:19:28Z</updated>
<author>
<name>Andrew MacIntyre</name>
<email>andymac@bullseye.apana.org.au</email>
</author>
<published>2003-12-26T00:19:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f3a24d0b373b4b35e832d6816c0b425188cbd5f'/>
<id>urn:sha1:6f3a24d0b373b4b35e832d6816c0b425188cbd5f</id>
<content type='text'>
</content>
</entry>
</feed>
