commit | 5bd69db9f03ef1fa5ccaefd6ddd43291f9e7532c | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Feb 22 16:18:44 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Feb 22 16:18:44 1999 +0000 |
tree | 0d676e2b08c42597e26f8c91e8b780ff9a95a822 | |
parent | 0fb7a37667e78f96392b5cfa6e82f04551724684 [diff] |
In atoi(), don't use isxdigit() to test whether the last character converted was a "digit" -- use isalnum(). This test is there only to guard against "+" or "-" being interpreted as a valid int literal. Reported by Takahiro Nakayama.