Files
cpython/Lib
Tim Peters 711088d9b8 Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort.
http://sourceforge.net/tracker/index.php?func=detail&aid=415514&group_id=5470&atid=105470
For short ints, Python defers to the platform C library to figure out what
%#x should do.  The code asserted that the platform C returned a string
beginning with "0x".  However, that's not true when-- and only when --the
*value* being formatted is 0.  Changed the code to live with C's inconsistency
here.  In the meantime, the problem does not arise if you format a long 0 (0L)
instead.  However, that's because the code *we* wrote to do %#x conversions on
longs produces a leading "0x" regardless of value.  That's probably wrong too:
we should drop leading "0x", for consistency with C, when (& only when) formatting
0L.  So I changed the long formatting code to do that too.
2001-04-12 00:35:51 +00:00
..
2001-04-11 16:43:13 +00:00
2001-02-09 16:34:24 +00:00
2001-02-18 03:30:53 +00:00
2001-04-08 07:23:44 +00:00
2001-02-09 05:07:04 +00:00
2001-02-09 05:38:46 +00:00
2001-02-10 00:06:00 +00:00
2001-02-18 03:30:53 +00:00
2001-03-19 13:40:44 +00:00
2001-02-18 03:30:53 +00:00
2001-02-09 08:56:30 +00:00
2001-03-16 08:29:48 +00:00
2001-02-09 08:25:29 +00:00
2001-01-20 23:34:12 +00:00
2001-03-02 06:43:49 +00:00
2001-01-20 23:34:12 +00:00
2001-01-20 23:34:12 +00:00
2001-02-09 11:10:16 +00:00
2001-01-20 23:34:12 +00:00
2001-01-20 23:34:12 +00:00
2001-01-23 15:35:05 +00:00
2001-01-20 23:34:12 +00:00
2001-02-09 10:10:02 +00:00
2001-02-09 08:25:29 +00:00
2001-02-09 10:18:37 +00:00
2001-01-24 06:27:27 +00:00
2001-02-09 09:10:35 +00:00
2001-02-09 09:48:45 +00:00
2001-01-24 06:27:27 +00:00
2001-01-24 06:27:27 +00:00
2001-02-09 09:48:45 +00:00
2001-01-31 22:13:15 +00:00
2001-02-09 10:23:55 +00:00
2001-02-10 00:22:33 +00:00
2001-02-09 09:39:08 +00:00
2001-04-10 15:42:02 +00:00
2001-02-18 03:30:53 +00:00
2001-02-09 07:02:17 +00:00
2001-02-06 01:07:02 +00:00
2001-02-07 23:14:30 +00:00
2001-02-09 20:06:00 +00:00
2001-02-12 02:00:42 +00:00
2001-02-12 02:00:42 +00:00
2001-02-12 02:00:42 +00:00
2001-02-12 02:00:42 +00:00
2001-02-12 02:00:42 +00:00
2001-02-12 02:00:42 +00:00
2001-02-12 02:00:42 +00:00
2001-02-18 03:30:53 +00:00
2001-02-15 23:56:39 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 23:56:39 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-03-02 06:42:34 +00:00
2001-02-15 22:15:14 +00:00
2001-02-15 22:15:14 +00:00
2001-03-29 04:36:09 +00:00
2001-03-22 15:50:10 +00:00
2001-03-22 15:50:10 +00:00
2001-03-22 15:50:10 +00:00
2001-03-22 15:50:10 +00:00
2001-02-18 03:30:53 +00:00
2001-02-15 22:15:14 +00:00
2001-02-18 03:30:53 +00:00
2001-01-15 01:36:40 +00:00
2001-01-15 01:36:40 +00:00
2000-08-24 21:08:39 +00:00
2001-03-29 04:36:09 +00:00
2001-02-10 00:22:33 +00:00
2001-03-29 04:36:09 +00:00
2000-03-10 23:18:11 +00:00
2001-03-16 08:29:48 +00:00