mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
SF bug #1224347: int/long unification and hex()
Hex longs now print with lowercase letters like their int counterparts.
This commit is contained in:
parent
d4128f397d
commit
3296e696db
4 changed files with 11 additions and 14 deletions
|
|
@ -208,7 +208,7 @@ class LongTest(unittest.TestCase):
|
|||
digits = digits or [0]
|
||||
return '-'[:sign] + \
|
||||
{8: '0', 10: '', 16: '0x'}[base] + \
|
||||
"".join(map(lambda i: "0123456789ABCDEF"[i], digits)) + "L"
|
||||
"".join(map(lambda i: "0123456789abcdef"[i], digits)) + "L"
|
||||
|
||||
def check_format_1(self, x):
|
||||
for base, mapper in (8, oct), (10, repr), (16, hex):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue