Enlightenment CVS committal
Author : barbieri
Project : e17
Module : proto/python-efl
Dir : e17/proto/python-efl/python-ecore/ecore/evas
Modified Files:
ecore.evas.c_ecore_evas_base.pxi
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-ecore/ecore/evas/ecore.evas.c_ecore_evas_base.pxi,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ecore.evas.c_ecore_evas_base.pxi 7 Aug 2008 03:13:09 -0000 1.13
+++ ecore.evas.c_ecore_evas_base.pxi 10 Aug 2008 14:59:12 -0000 1.14
@@ -234,8 +234,8 @@
return "%s(Evas=%s)" % (self.__class__.__name__, self.evas)
def __repr__(self):
- return "%s(0x%x, refcount=%d, Ecore_Evas=0x%x, Evas=%r)" % \
- (self.__class__.__name__, <unsigned long>self,
+ return "%s(%#x, refcount=%d, Ecore_Evas=%#x, Evas=%r)" % \
+ (self.__class__.__name__, <unsigned long><void *>self,
PY_REFCOUNT(self), <unsigned long>self.obj,
self.evas)
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs