cpython/Objects
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
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
Makefile.in Marc-AAndre Lemburg: add new unicode files 2000-03-10 22:55:40 +00:00
abstract.c Patch from /F: 2000-06-18 18:43:14 +00:00
bufferobject.c Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
classobject.c Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
cobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
complexobject.c This patch addresses two main issues: (1) There exist some non-fatal 2000-06-29 19:17:04 +00:00
dictobject.c final patches from Neil Schemenauer for garbage collection 2000-06-30 05:02:53 +00:00
fileobject.c Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
floatobject.c Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
frameobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
funcobject.c Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
intobject.c Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
listobject.c final patches from Neil Schemenauer for garbage collection 2000-06-30 05:02:53 +00:00
longobject.c Trent Mick <trentm@ActiveState.com>: 2000-06-01 18:37:36 +00:00
methodobject.c Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
moduleobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
object.c Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
rangeobject.c Thomas Wouters <thomas@xs4all.net>: 2000-06-15 14:50:20 +00:00
sliceobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
stringobject.c Marc-Andre Lemburg <mal@lemburg.com>: 2000-06-30 10:29:57 +00:00
tupleobject.c final patches from Neil Schemenauer for garbage collection 2000-06-30 05:02:53 +00:00
typeobject.c American spelling in doc string. 1997-06-02 14:43:07 +00:00
unicodectype.c Marc-Andre Lemburg: 2000-04-11 15:39:02 +00:00
unicodeobject.c Marc-Andre Lemburg <mal@lemburg.com>: 2000-06-30 14:58:20 +00:00
xxobject.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00