Files
cpython/Modules
Fred Drake a44d353e2b Trent Mick <trentm@activestate.com>:
The common technique for printing out a pointer has been to cast to a long
and use the "%lx" printf modifier. This is incorrect on Win64 where casting
to a long truncates the pointer. The "%p" formatter should be used instead.

The problem as stated by Tim:
> Unfortunately, the C committee refused to define what %p conversion "looks
> like" -- they explicitly allowed it to be implementation-defined. Older
> versions of Microsoft C even stuck a colon in the middle of the address (in
> the days of segment+offset addressing)!

The result is that the hex value of a pointer will maybe/maybe not have a 0x
prepended to it.


Notes on the patch:

There are two main classes of changes:
- in the various repr() functions that print out pointers
- debugging printf's in the various thread_*.h files (these are why the
patch is large)


Closes SourceForge patch #100505.
2000-06-30 15:01:00 +00:00
..
2000-03-28 20:29:59 +00:00
2000-06-27 21:49:47 +00:00
2000-06-30 13:55:15 +00:00
2000-05-02 18:34:30 +00:00
1997-04-29 21:34:16 +00:00
1997-04-29 20:31:59 +00:00
1997-10-01 04:29:29 +00:00
1996-08-19 22:12:39 +00:00
2000-06-18 19:06:49 +00:00
1998-12-07 14:28:47 +00:00
1999-04-10 15:48:23 +00:00
2000-06-28 21:18:13 +00:00
1996-12-10 00:32:31 +00:00
2000-06-28 22:26:21 +00:00
2000-06-29 18:03:25 +00:00
1996-01-26 21:10:22 +00:00
1996-10-25 14:44:06 +00:00