[pypy-commit] pypy reflex-support: use backend specific name for class "std::string" directly
wlav
noreply at buildbot.pypy.org
Sun Apr 21 03:53:22 CEST 2013
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r63534:833745553a7d
Date: 2013-04-19 10:48 -0700
http://bitbucket.org/pypy/pypy/changeset/833745553a7d/
Log: use backend specific name for class "std::string" directly
diff --git a/pypy/module/cppyy/converter.py b/pypy/module/cppyy/converter.py
--- a/pypy/module/cppyy/converter.py
+++ b/pypy/module/cppyy/converter.py
@@ -506,7 +506,7 @@
def __init__(self, space, extra):
from pypy.module.cppyy import interp_cppyy
- cppclass = interp_cppyy.scope_byname(space, "std::string")
+ cppclass = interp_cppyy.scope_byname(space, capi.std_string_name)
InstanceConverter.__init__(self, space, cppclass)
def _unwrap_object(self, space, w_obj):
@@ -534,7 +534,7 @@
def __init__(self, space, extra):
from pypy.module.cppyy import interp_cppyy
- cppclass = interp_cppyy.scope_byname(space, "std::string")
+ cppclass = interp_cppyy.scope_byname(space, capi.std_string_name)
InstancePtrConverter.__init__(self, space, cppclass)
More information about the pypy-commit
mailing list