Enlightenment CVS committal Author : barbieri Project : e17 Module : proto/python-efl
Dir : e17/proto/python-efl/python-epsilon/epsilon Modified Files: epsilon.c_epsilon.pyx epsilon.request.pyx Log Message: Fix way to get the address of python objects. Cython changed the way casts are interpreted some time ago and <unsigned long>object is not valid anymore because it would check for an integer-capable object (ie: __init__()). Instead we must make it a void pointer (<void *>object) and then cast this to the integer type. =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-epsilon/epsilon/epsilon.c_epsilon.pyx,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- epsilon.c_epsilon.pyx 7 Aug 2008 03:13:11 -0000 1.3 +++ epsilon.c_epsilon.pyx 10 Aug 2008 14:59:12 -0000 1.4 @@ -58,9 +58,9 @@ self.thumb_size, self.resolution) def __repr__(self): - return ("%s(0x%x, path=%r, key=%s, thumb_file=%r, thumb_size=%r, " + return ("%s(%#x, path=%r, key=%s, thumb_file=%r, thumb_size=%r, " "resolution=%r, Epsilon=%#x, refcount=%d)") % \ - (self.__class__.__name__, <unsigned long>self, + (self.__class__.__name__, <unsigned long><void *>self, self.file, self.key, self.thumb_file, self.thumb_size, self.resolution, <unsigned long>self.obj, PY_REFCOUNT(self)) =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-epsilon/epsilon/epsilon.request.pyx,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- epsilon.request.pyx 7 Aug 2008 03:13:11 -0000 1.5 +++ epsilon.request.pyx 10 Aug 2008 14:59:12 -0000 1.6 @@ -70,9 +70,9 @@ self.request_id, self.status) def __repr__(self): - return ("%s(0x%x, path=%r, dest=%r, size=%r, request_id=%r, status=%r, " + return ("%s(%#x, path=%r, dest=%r, size=%r, request_id=%r, status=%r, " "Epsilon_Request=%#x, refcount=%d)") % \ - (self.__class__.__name__, <unsigned long>self, + (self.__class__.__name__, <unsigned long><void *>self, self.path, self.dest, self.size, self.request_id, self.status, <unsigned long>self.obj, PY_REFCOUNT(self)) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs