Author: Manuel Jacob <[email protected]>
Branch: py3.5
Changeset: r90734:e311a2caebc8
Date: 2017-03-16 23:49 +0100
http://bitbucket.org/pypy/pypy/changeset/e311a2caebc8/
Log: Call init_extra_module_attrs() for MixedModules.
This increases compatibilty with CPython, as this sets some module
attributes to None, like on CPython.
diff --git a/pypy/interpreter/mixedmodule.py b/pypy/interpreter/mixedmodule.py
--- a/pypy/interpreter/mixedmodule.py
+++ b/pypy/interpreter/mixedmodule.py
@@ -1,4 +1,4 @@
-from pypy.interpreter.module import Module
+from pypy.interpreter.module import Module, init_extra_module_attrs
from pypy.interpreter.function import Function, BuiltinFunction
from pypy.interpreter import gateway
from pypy.interpreter.error import OperationError
@@ -18,6 +18,7 @@
def __init__(self, space, w_name):
""" NOT_RPYTHON """
Module.__init__(self, space, w_name)
+ init_extra_module_attrs(space, self)
self.lazy = True
self.lazy_initial_values_w = {}
self.__class__.buildloaders()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit