[pypy-commit] pypy reflex-support: TCollection pythonizations (CINT only)

wlav noreply at buildbot.pypy.org
Sat Aug 31 01:21:43 CEST 2013


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r66693:7eda663880a0
Date: 2013-08-29 15:14 -0700
http://bitbucket.org/pypy/pypy/changeset/7eda663880a0/

Log:	TCollection pythonizations (CINT only)

diff --git a/pypy/module/cppyy/capi/cint_capi.py b/pypy/module/cppyy/capi/cint_capi.py
--- a/pypy/module/cppyy/capi/cint_capi.py
+++ b/pypy/module/cppyy/capi/cint_capi.py
@@ -288,7 +288,11 @@
 # callback coming in when app-level bound classes have been created
 def pythonize(space, name, w_pycppclass):
 
-    if name == "TFile":
+    if name == "TCollection":
+        _method_alias(space, w_pycppclass, "append", "Add")
+        _method_alias(space, w_pycppclass, "__len__", "GetSize")
+
+    elif name == "TFile":
         _method_alias(space, w_pycppclass, "__getattr__", "Get")
 
     elif name == "TObjString":


More information about the pypy-commit mailing list