Author: Wim Lavrijsen <[email protected]>
Branch: cppyy-packaging
Changeset: r94871:ff8881eb57bb
Date: 2018-07-16 13:02 -0700
http://bitbucket.org/pypy/pypy/changeset/ff8881eb57bb/
Log: store free functions on namespace dict, not namespace's class dict
diff --git a/pypy/module/_cppyy/pythonify.py b/pypy/module/_cppyy/pythonify.py
--- a/pypy/module/_cppyy/pythonify.py
+++ b/pypy/module/_cppyy/pythonify.py
@@ -317,7 +317,7 @@
if not cppitem:
try:
cppitem = scope.__cppdecl__.get_overload(name)
- setattr(scope.__class__, name, cppitem)
+ setattr(scope, name, cppitem)
pycppitem = getattr(scope, name) # binds function as needed
except AttributeError:
pass
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit