<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/intobject.c, branch v2.5c2</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/intobject.c?h=v2.5c2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/intobject.c?h=v2.5c2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-09-05T01:47:53Z</updated>
<entry>
<title>i_divmod():  As discussed on Python-Dev, changed the overflow</title>
<updated>2006-09-05T01:47:53Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-09-05T01:47:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cbdd350dd7e393933437d5c12eabe8e47b6a40d9'/>
<id>urn:sha1:cbdd350dd7e393933437d5c12eabe8e47b6a40d9</id>
<content type='text'>
checking to live happily with recent gcc optimizations that
assume signed integer arithmetic never overflows.
</content>
</entry>
<entry>
<title>Patch #1538606, Patch to fix __index__() clipping.</title>
<updated>2006-08-12T17:03:09Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-08-12T17:03:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8a87f5d37e6aab91ddc4c6491877b6cbd48a12cf'/>
<id>urn:sha1:8a87f5d37e6aab91ddc4c6491877b6cbd48a12cf</id>
<content type='text'>
I modified this patch some by fixing style, some error checking, and adding
XXX comments.  This patch requires review and some changes are to be expected.
I'm checking in now to get the greatest possible review and establish a
baseline for moving forward.  I don't want this to hold up release if possible.
</content>
</entry>
<entry>
<title>C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a couple places</title>
<updated>2006-04-18T00:35:43Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2006-04-18T00:35:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=429433b30bbfb957c38b1bc0b699cda2fb30db1c'/>
<id>urn:sha1:429433b30bbfb957c38b1bc0b699cda2fb30db1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix int() and long() to repr() their argument when formatting the exception,</title>
<updated>2006-04-11T23:50:33Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-04-11T23:50:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9cb28bea04066b6b47f84662e1db130eda137b09'/>
<id>urn:sha1:9cb28bea04066b6b47f84662e1db130eda137b09</id>
<content type='text'>
to avoid confusing situations like:

&gt;&gt;&gt; int("")
ValueError: invalid literal for int():
&gt;&gt;&gt; int("2\n\n2")
ValueError: invalid literal for int(): 2

2

Also report the base used, to avoid:

ValueError: invalid literal for int(): 2

They now report:

&gt;&gt;&gt; int("")
ValueError: invalid literal for int() with base 10: ''
&gt;&gt;&gt; int("2\n\n2")
ValueError: invalid literal for int() with base 10: '2\n\n2'
&gt;&gt;&gt; int("2", 2)
ValueError: invalid literal for int() with base 2: '2'

(Reporting the base could be avoided when base is 10, which is the default,
but hrm.) Another effect of these changes is that the errormessage can be
longer; before, it was cut off at about 250 characters. Now, it can be up to
four times as long, as the unrepr'ed string is cut off at 200 characters,
instead.

No tests were added or changed, since testing for exact errormsgs is (pardon
the pun) somewhat errorprone, and I consider not testing the exact text
preferable. The actually changed code is tested frequent enough in the
test_builtin test as it is (120 runs for each of ints and longs.)
</content>
</entry>
<entry>
<title>More C++-compliance. Note especially listobject.c - to get C++ to accept the</title>
<updated>2006-04-11T06:54:30Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2006-04-11T06:54:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=377be11ee1fab015f4cc77975374f86cf436536e'/>
<id>urn:sha1:377be11ee1fab015f4cc77975374f86cf436536e</id>
<content type='text'>
PyTypeObject structures, I had to make prototypes for the functions, and
move the structure definition ahead of the functions. I'd dearly like a better
way to do this - to change this would make for a massive set of changes to
the codebase.

There's still some warnings - this is purely to get rid of errors first.
</content>
</entry>
<entry>
<title>Remove unnecessary casts in type object initializers.</title>
<updated>2006-03-30T11:57:00Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2006-03-30T11:57:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=347b30042b68e80b245a03b23cb616024ecb1f1e'/>
<id>urn:sha1:347b30042b68e80b245a03b23cb616024ecb1f1e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Checking in the code for PEP 357.</title>
<updated>2006-03-07T18:50:55Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-03-07T18:50:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=38fff8c4e4276e4e57660a78f305e68bfa87874b'/>
<id>urn:sha1:38fff8c4e4276e4e57660a78f305e68bfa87874b</id>
<content type='text'>
This was mostly written by Travis Oliphant.
I've inspected it all; Neal Norwitz and MvL have also looked at it
(in an earlier incarnation).
</content>
</entry>
<entry>
<title>Use %ld and casts to long for refcount printing, in absense of a universally</title>
<updated>2006-03-01T05:41:20Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-03-01T05:41:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8b87a0b5fcc3db361d720c365273114eef5d9467'/>
<id>urn:sha1:8b87a0b5fcc3db361d720c365273114eef5d9467</id>
<content type='text'>
available %zd format character. Mark with an XXX comment so we can fix this,
later.
</content>
</entry>
<entry>
<title>Revert backwards-incompatible const changes.</title>
<updated>2006-02-27T16:46:16Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-27T16:46:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=15e62742fad688b026ba80bf17d1345c4cbd423b'/>
<id>urn:sha1:15e62742fad688b026ba80bf17d1345c4cbd423b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>RFE #1436243: make integers in [0..256] preallocated.</title>
<updated>2006-02-22T11:30:06Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2006-02-22T11:30:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=418a1ef0895e826c65d4113be5d86891c199e15d'/>
<id>urn:sha1:418a1ef0895e826c65d4113be5d86891c199e15d</id>
<content type='text'>
</content>
</entry>
</feed>
