Oops, repr didn't allocate the memory it used...

This commit is contained in:
Jack Jansen 2001-02-11 01:12:53 +00:00
parent 8a38714ba0
commit 3f49e4d064
2 changed files with 19 additions and 1 deletions

View file

@ -2310,7 +2310,13 @@ static int WinObj_compare(self, other)
return 0;
}
#define WinObj_repr NULL
static PyObject * WinObj_repr(self)
WindowObject *self;
{
char buf[100];
sprintf(buf, "<Window object at 0x%08.8x for 0x%08.8x>", self, self->ob_itself);
return PyString_FromString(buf);
}
static int WinObj_hash(self)
WindowObject *self;