BigEd / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
1 stars 3 forks source link

Add support for hex type in string formatting #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From Michael (xinx) on the maillist on 2010/08/31:

Thinking hexadecimal most of my time I'm wondering whether it's
dangerous to substitute lines 374 and 480 of vm/strobj.c

           if (fmtcstr[i] == 'd')

with

           if ((fmtcstr[i] == 'd') || (fmtcstr[i] == 'x') ||
(fmtcstr[i] == 'X'))

In case you like this idea perhaps you can add this to the mainstream?

Original issue reported on code.google.com by dwhall...@gmail.com on 3 Sep 2010 at 9:08

GoogleCodeExporter commented 9 years ago
r601
- Added code as suggested above
- Added system tests t334
- Added thanks in README

Original comment by dwhall...@gmail.com on 15 Sep 2010 at 2:15