<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/intobject.h, branch 2.4</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/intobject.h?h=2.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/intobject.h?h=2.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-10-28T16:32:00Z</updated>
<entry>
<title>Wrote down the invariants of some common objects whose structure is</title>
<updated>2004-10-28T16:32:00Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2004-10-28T16:32:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=89a39461bff04b80bb4857790350e1ab30ff2df9'/>
<id>urn:sha1:89a39461bff04b80bb4857790350e1ab30ff2df9</id>
<content type='text'>
exposed in header files.  Fixed a few comments in these headers.

As we might have expected, writing down invariants systematically exposed a
(minor) bug.  In this case, function objects have a writeable func_code
attribute, which could be set to code objects with the wrong number of
free variables.  Calling the resulting function segfaulted the interpreter.
Added a corresponding test.
</content>
</entry>
<entry>
<title>SF # 595026: support for masks in getargs.c.</title>
<updated>2003-04-17T18:55:45Z</updated>
<author>
<name>Thomas Heller</name>
<email>theller@ctypes.org</email>
</author>
<published>2003-04-17T18:55:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a4ea603b055533e71920a088acb1c106e4895dbd'/>
<id>urn:sha1:a4ea603b055533e71920a088acb1c106e4895dbd</id>
<content type='text'>
New functions:
  unsigned long PyInt_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
  unsigned long PyLong_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);

New and changed format codes:

b unsigned char 0..UCHAR_MAX
B unsigned char none **
h unsigned short 0..USHRT_MAX
H unsigned short none **
i int INT_MIN..INT_MAX
I * unsigned int 0..UINT_MAX
l long LONG_MIN..LONG_MAX
k * unsigned long none
L long long LLONG_MIN..LLONG_MAX
K * unsigned long long none

Notes:

* New format codes.

** Changed from previous "range-and-a-half" to "none"; the
range-and-a-half checking wasn't particularly useful.

New test test_getargs2.py, to verify all this.
</content>
</entry>
<entry>
<title>Move _PyInt_Init() into pythonrun.h, since all the other _Init()</title>
<updated>2003-01-01T15:18:32Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-01-01T15:18:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dc392e31439d9992ea0101abaca09bcb78ebc311'/>
<id>urn:sha1:dc392e31439d9992ea0101abaca09bcb78ebc311</id>
<content type='text'>
functions are here.  Suggested by Skip.
</content>
</entry>
<entry>
<title>Since the *_Init() are private, prefix with _, suggested by Skip</title>
<updated>2002-12-31T03:42:13Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-12-31T03:42:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b2501f4cd18f65cc671482ceb1abe88c289b664c'/>
<id>urn:sha1:b2501f4cd18f65cc671482ceb1abe88c289b664c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF #561244, Micro optimizations</title>
<updated>2002-12-30T22:29:22Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-12-30T22:29:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c91ed400e053dc9f11dd30c84e2bb611999dce50'/>
<id>urn:sha1:c91ed400e053dc9f11dd30c84e2bb611999dce50</id>
<content type='text'>
Initialize the small integers and __builtins__ in startup.
This removes some if conditions.
Change XDECREF to DECREF for values which shouldn't be NULL.
</content>
</entry>
<entry>
<title>Excise DL_EXPORT from Include.</title>
<updated>2002-08-12T07:21:58Z</updated>
<author>
<name>Mark Hammond</name>
<email>mhammond@skippinet.com.au</email>
</author>
<published>2002-08-12T07:21:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=91a681debf9ffec155d0aff8a0bb5f965f592e16'/>
<id>urn:sha1:91a681debf9ffec155d0aff8a0bb5f965f592e16</id>
<content type='text'>
Thanks to Skip Montanaro and Kalle Svensson for the patches.
</content>
</entry>
<entry>
<title>Add the 'bool' type and its values 'False' and 'True', as described in</title>
<updated>2002-04-03T22:41:51Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-04-03T22:41:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=77f6a65eb00f005939c6c7c5d6ac0f037a0ce1bd'/>
<id>urn:sha1:77f6a65eb00f005939c6c7c5d6ac0f037a0ce1bd</id>
<content type='text'>
PEP 285.  Everything described in the PEP is here, and there is even
some documentation.  I had to fix 12 unit tests; all but one of these
were printing Boolean outcomes that changed from 0/1 to False/True.
(The exception is test_unicode.py, which did a type(x) == type(y)
style comparison.  I could've fixed that with a single line using
issubtype(x, type(y)), but instead chose to be explicit about those
places where a bool is expected.

Still to do: perhaps more documentation; change standard library
modules to return False/True from predicates.
</content>
</entry>
<entry>
<title>SF bug #460020:  bug or feature: unicode() and subclasses.</title>
<updated>2001-09-10T20:52:51Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-10T20:52:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=64b5ce3a69569b203a39f74c5c03348ba0a67583'/>
<id>urn:sha1:64b5ce3a69569b203a39f74c5c03348ba0a67583</id>
<content type='text'>
Given an immutable type M, and an instance I of a subclass of M, the
constructor call M(I) was just returning I as-is; but it should return a
new instance of M.  This fixes it for M in {int, long}.  Strings, floats
and tuples remain to be done.
Added new macros PyInt_CheckExact and PyLong_CheckExact, to more easily
distinguish between "is" and "is a" (i.e., only an int passes
PyInt_CheckExact, while any sublass of int passes PyInt_Check).
Added private API function _PyLong_Copy.
</content>
</entry>
<entry>
<title>Make the PyXXX_Check() macros for the numeric types inheritance-aware.</title>
<updated>2001-08-29T15:45:32Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-29T15:45:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c16fcdf533583039d687f8ca2e88a1c21f3feeb3'/>
<id>urn:sha1:c16fcdf533583039d687f8ca2e88a1c21f3feeb3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch #445762: Support --disable-unicode</title>
<updated>2001-08-17T18:39:25Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-08-17T18:39:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=339d0f720e86dc34837547c90d3003a4a68d7d46'/>
<id>urn:sha1:339d0f720e86dc34837547c90d3003a4a68d7d46</id>
<content type='text'>
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
</content>
</entry>
</feed>
