<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/longobject.c, branch v2.5a2</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/longobject.c?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/longobject.c?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-04-18T00:35:43Z</updated>
<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>Patch #837242: id() for large ptr should return a long.</title>
<updated>2006-04-10T20:28:17Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-04-10T20:28:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0bc2ab9a20745e3cc7a2ca4cc01a3708e273e2dc'/>
<id>urn:sha1:0bc2ab9a20745e3cc7a2ca4cc01a3708e273e2dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add PY_SSIZE_T_MIN, as suggested by Ralf W. Grosse-Kunstleve.</title>
<updated>2006-04-05T18:21:17Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-04-05T18:21:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c48c8db110fd5e3b1f8574e8e52f85d11d4c4fd4'/>
<id>urn:sha1:c48c8db110fd5e3b1f8574e8e52f85d11d4c4fd4</id>
<content type='text'>
</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>fix a comment.</title>
<updated>2006-03-28T19:27:56Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2006-03-28T19:27:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=12bec1b9851b821d3350a20f3a49e2a0cb7d22e5'/>
<id>urn:sha1:12bec1b9851b821d3350a20f3a49e2a0cb7d22e5</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>SF #1444030: Fix several potential defects found by Coverity.</title>
<updated>2006-03-07T15:39:21Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2006-03-07T15:39:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4af5c8cee4885df70884a58e2e74c48984bbe7c2'/>
<id>urn:sha1:4af5c8cee4885df70884a58e2e74c48984bbe7c2</id>
<content type='text'>
(reviewed by Neal Norwitz)
</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>
</feed>
