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-04-05 16:08:41 +00:00
2001-04-10 18:57:07 +00:00
2001-01-03 21:29:14 +00:00
2000-09-24 06:29:50 +00:00
2001-02-09 16:34:24 +00:00
2001-04-10 21:13:06 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2000-10-09 19:34:12 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-02-27 21:35:40 +00:00
2001-04-10 22:07:43 +00:00
2001-02-02 02:51:21 +00:00
2001-02-27 21:35:40 +00:00
2001-04-11 23:43:09 +00:00
2000-03-31 20:03:56 +00:00
2001-04-12 00:35:51 +00:00
2001-04-05 14:41:30 +00:00
2001-03-15 10:45:44 +00:00
2001-01-20 19:54:20 +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-01-21 03:40:37 +00:00
2001-01-20 19:54:20 +00:00
2001-01-20 19:54:20 +00:00
2001-02-09 05:38:46 +00:00
2001-01-20 19:54:20 +00:00
2001-04-08 15:05:16 +00:00
2001-02-10 00:06:00 +00:00
2001-02-18 03:30:53 +00:00
2001-01-20 19:54:20 +00:00
2001-03-19 13:40:44 +00:00
2001-02-09 12:10:26 +00:00
2001-02-18 03:30:53 +00:00
2001-03-22 21:59:20 +00:00
2001-02-09 08:56:30 +00:00
2001-01-20 19:54:20 +00:00
2001-04-08 00:43:13 +00:00
2001-01-20 19:54:20 +00:00
2001-01-20 19:54:20 +00:00
2001-01-20 19:54:20 +00:00
2001-02-26 21:55:34 +00:00
2001-04-06 19:39:11 +00:00
2001-01-20 19:54:20 +00:00
2001-01-20 19:54:20 +00:00
2001-01-25 13:47:00 +00:00
2001-02-20 11:24:35 +00:00
2001-03-16 08:29:48 +00:00
2001-02-09 08:25:29 +00:00
2001-03-21 23:07:59 +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-03-21 18:05:48 +00:00
2001-02-09 11:10:16 +00:00
2001-01-20 23:34:12 +00:00
2001-04-09 04:31:50 +00:00
2001-01-20 23:34:12 +00:00
2001-02-27 21:23:31 +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-03-20 15:51:14 +00:00
2001-02-18 03:30:53 +00:00
2001-02-09 08:25:29 +00:00
2001-02-01 23:35:20 +00:00
2001-02-09 10:18:37 +00:00
2001-02-22 13:24:27 +00:00
2001-01-24 06:27:27 +00:00
2001-04-07 16:05:24 +00:00
2001-04-10 11:43:00 +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-03-23 17:00:07 +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-23 20:04:54 +00:00
2001-02-09 09:44:47 +00:00
2001-02-09 09:39:08 +00:00
2001-04-10 15:42:02 +00:00
2001-03-12 02:56:15 +00:00
2001-02-18 03:30:53 +00:00
2001-03-06 06:33:08 +00:00
2001-02-09 07:02:17 +00:00
2001-02-06 01:07:02 +00:00
2001-02-18 03:30:53 +00:00
2001-03-07 09:05:45 +00:00
2001-02-09 23:28:07 +00:00
2001-04-10 05:02:52 +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-04-10 15:44:33 +00:00
2001-02-12 02:00:42 +00:00
2001-02-12 02:00:42 +00:00
2001-03-10 09:33:14 +00:00
2001-03-14 20:01:19 +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-04-10 12:22:01 +00:00
2001-02-18 03:30:53 +00:00
2001-03-22 22:30:21 +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-18 03:30:53 +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-03-16 20:04:57 +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-09 10:26:06 +00:00
2001-03-23 17:53:49 +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-04-11 04:02:05 +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-02-18 03:30:53 +00:00
2001-02-09 13:37:37 +00:00
2001-02-09 20:18:41 +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-04-08 00:38:42 +00:00
2001-03-01 04:27:19 +00:00
2001-03-02 05:51:16 +00:00
2001-02-27 21:51:47 +00:00
2001-04-02 20:15:57 +00:00
2001-03-01 04:27:19 +00:00
2001-02-10 00:22:33 +00:00
2001-03-23 05:22:49 +00:00
2001-03-29 04:36:09 +00:00
2001-03-01 04:27:19 +00:00
2000-03-10 23:18:11 +00:00
2001-03-20 18:36:48 +00:00
2001-04-09 15:37:31 +00:00
2001-04-11 07:44:53 +00:00
2001-04-09 14:54:21 +00:00
2001-03-01 04:27:19 +00:00
2000-03-30 15:00:33 +00:00
2001-02-18 03:30:53 +00:00
2001-02-18 03:30:53 +00:00
2001-01-20 19:54:20 +00:00
2001-03-01 04:27:19 +00:00
2001-03-01 04:27:19 +00:00
2001-03-01 04:27:19 +00:00
2001-04-10 19:11:23 +00:00
2001-03-31 01:50:52 +00:00
2001-03-16 08:29:48 +00:00
2001-01-15 03:34:38 +00:00
2001-03-01 04:27:19 +00:00
2001-03-14 17:03:30 +00:00
2001-04-10 15:37:12 +00:00