[pygobject/pygi-py3k: 4/5] return __long__ from the Number class



commit c0ec19f2b96ec62b43365c9c8007a3646a7d7169
Author: John (J5) Palmieri <johnp redhat com>
Date:   Fri Apr 16 10:24:54 2010 -0400

    return __long__ from the Number class

 tests/test_gi.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 89dfe87..200c15c 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -27,6 +27,9 @@ class Number(object):
     def __int__(self):
         return int(self.value)
 
+    def __long__(self):
+        return long(self.value)
+
     def __float__(self):
         return float(self.value)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]