<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/mystrtoul.c, branch v2.7a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/mystrtoul.c?h=v2.7a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/mystrtoul.c?h=v2.7a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2008-03-28T04:58:51Z</updated>
<entry>
<title>Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings.</title>
<updated>2008-03-28T04:58:51Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2008-03-28T04:58:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d183bdd6fb77ae562714c655f0689beacdc00da1'/>
<id>urn:sha1:d183bdd6fb77ae562714c655f0689beacdc00da1</id>
<content type='text'>
Rather than sprinkle casts throughout the code, change Py_CHARMASK to
always cast it's result to an unsigned char.  This should ensure we
do the right thing when accessing an array with the result.
</content>
</entry>
<entry>
<title>Fix warnings about using char as an array subscript.  This is not portable</title>
<updated>2008-03-27T04:40:50Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2008-03-27T04:40:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=231346e23f3bcb5102199712b998ca7f2354dfdd'/>
<id>urn:sha1:231346e23f3bcb5102199712b998ca7f2354dfdd</id>
<content type='text'>
since char is signed on some platforms and unsigned on others.
</content>
</entry>
<entry>
<title>Finished backporting PEP 3127, Integer Literal Support and Syntax.</title>
<updated>2008-03-17T17:32:20Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-03-17T17:32:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9ff19b54346d39d15cdcf75e9d66ab46ea6064d6'/>
<id>urn:sha1:9ff19b54346d39d15cdcf75e9d66ab46ea6064d6</id>
<content type='text'>
Added 0b and 0o literals to tokenizer.
Modified PyOS_strtoul to support 0b and 0o inputs.
Modified PyLong_FromString to support guessing 0b and 0o inputs.
Renamed test_hexoct.py to test_int_literal.py and added binary tests.
Added upper and lower case 0b, 0O, and 0X tests to test_int_literal.py
</content>
</entry>
<entry>
<title>Removed duplicate Py_CHARMASK define.  It's already defined in Python.h.</title>
<updated>2008-02-23T16:05:26Z</updated>
<author>
<name>Eric Smith</name>
<email>eric@trueblade.com</email>
</author>
<published>2008-02-23T16:05:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8328bbc57dccbcbd834f822c2c9c70bd2ad199eb'/>
<id>urn:sha1:8328bbc57dccbcbd834f822c2c9c70bd2ad199eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix #1679: "0x" was taken as a valid integer literal.</title>
<updated>2008-01-19T19:27:05Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2008-01-19T19:27:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=14404b68d8c5a501a2f5ee6f45494865b7b38276'/>
<id>urn:sha1:14404b68d8c5a501a2f5ee6f45494865b7b38276</id>
<content type='text'>
Fixes the tokenizer, tokenize.py and int() to reject this.
Patches by Malte Helmert.
</content>
</entry>
<entry>
<title>Forward-port of r52136,52138: a review of overflow-detecting code.</title>
<updated>2006-10-04T12:17:45Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2006-10-04T12:17:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7ccbca93a27e22f0b06316b0d9760fbf7b19cbda'/>
<id>urn:sha1:7ccbca93a27e22f0b06316b0d9760fbf7b19cbda</id>
<content type='text'>
* unified the way intobject, longobject and mystrtoul handle
  values around -sys.maxint-1.

* in general, trying to entierely avoid overflows in any computation
  involving signed ints or longs is extremely involved.  Fixed a few
  simple cases where a compiler might be too clever (but that's all
  guesswork).

* more overflow checks against bad data in marshal.c.

* 2.5 specific: fixed a number of places that were still confusing int
  and Py_ssize_t.  Some of them could potentially have caused
  "real-world" breakage.

* list.pop(x): fixing overflow issues on x was messy.  I just reverted
  to PyArg_ParseTuple("n"), which does the right thing.  (An obscure
  test was trying to give a Decimal to list.pop()... doesn't make
  sense any more IMHO)

* trying to write a few tests...
</content>
</entry>
<entry>
<title>Bug #1521947:  possible bug in mystrtol.c with recent gcc.</title>
<updated>2006-07-27T01:14:53Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-07-27T01:14:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bc24eee333126a313bfe42381050a49ecbbc8bbe'/>
<id>urn:sha1:bc24eee333126a313bfe42381050a49ecbbc8bbe</id>
<content type='text'>
In general, C doesn't define anything about what happens when
an operation on a signed integral type overflows, and PyOS_strtol()
did several formally undefined things of that nature on signed
longs.  Some version of gcc apparently tries to exploit that now,
and PyOS_strtol() could fail to detect overflow then.

Tried to repair all that, although it seems at least as likely to me
that we'll get screwed by bad platform definitions for LONG_MIN
and/or LONG_MAX now.  For that reason, I don't recommend backporting
this.

Note that I have no box on which this makes a lick of difference --
can't really test it, except to note that it didn't break anything
on my boxes.

Silent change:  PyOS_strtol() used to return the hard-coded 0x7fffffff
in case of overflow.  Now it returns LONG_MAX.  They're the same only on
32-bit boxes (although C doesn't guarantee that either ...).
</content>
</entry>
<entry>
<title>On 64 bit systems, int literals that use less than 64 bits are now ints</title>
<updated>2006-07-09T22:14:42Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-07-09T22:14:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=28746aba9bf636d03eb1c1c5f4550c6f2dbf5300'/>
<id>urn:sha1:28746aba9bf636d03eb1c1c5f4550c6f2dbf5300</id>
<content type='text'>
rather than longs.  This also fixes the test for eval(-sys.maxint - 1).
</content>
</entry>
<entry>
<title>Patch #1495999: Part two of Windows CE changes.</title>
<updated>2006-06-10T12:23:46Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-06-10T12:23:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0e8bd7e1ccf7f47bc0bb920af899c77669016d3d'/>
<id>urn:sha1:0e8bd7e1ccf7f47bc0bb920af899c77669016d3d</id>
<content type='text'>
- update header checks, using autoconf
- provide dummies for getenv, environ, and GetVersion
- adjust MSC_VER check in socketmodule.c
</content>
</entry>
<entry>
<title>A new table to help string-&gt;integer conversion was added yesterday to</title>
<updated>2006-05-25T17:34:03Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-05-25T17:34:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=da53afa1b09218c0fb7ce8803cd783a43ee9d319'/>
<id>urn:sha1:da53afa1b09218c0fb7ce8803cd783a43ee9d319</id>
<content type='text'>
both mystrtoul.c and longobject.c.  Share the table instead.  Also
cut its size by 64 entries (they had been used for an inscrutable
trick originally, but the code no longer tries to use that trick).
</content>
</entry>
</feed>
