Author: Manuel Jacob <[email protected]>
Branch: py3.3
Changeset: r76170:78b221682191
Date: 2015-02-27 12:33 +0100
http://bitbucket.org/pypy/pypy/changeset/78b221682191/

Log:    Implement a return value of None in getinterpevalloader, which means
        that no such attribute exists.

diff --git a/pypy/interpreter/mixedmodule.py b/pypy/interpreter/mixedmodule.py
--- a/pypy/interpreter/mixedmodule.py
+++ b/pypy/interpreter/mixedmodule.py
@@ -190,6 +190,8 @@
                         # clarity
                         raise etype, evalue, etb
             else:
+                if value is None:
+                    return value
                 #print spec, "->", value
                 if hasattr(value, 'func_code'):  # semi-evil
                     return space.wrap(gateway.interp2app(value))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to