[pypy-svn] r20361 - pypy/branch/somepbc-refactoring/pypy/rpython
mwh at codespeak.net
mwh at codespeak.net
Mon Nov 28 16:09:47 CET 2005
Author: mwh
Date: Mon Nov 28 16:09:46 2005
New Revision: 20361
Modified:
pypy/branch/somepbc-refactoring/pypy/rpython/rclass.py
Log:
support for None as a value of a class attribute.
Modified: pypy/branch/somepbc-refactoring/pypy/rpython/rclass.py
==============================================================================
--- pypy/branch/somepbc-refactoring/pypy/rpython/rclass.py (original)
+++ pypy/branch/somepbc-refactoring/pypy/rpython/rclass.py Mon Nov 28 16:09:46 2005
@@ -85,7 +85,7 @@
# if s_value is SomePBC([MethodDescs...])
# return a PBC representing the underlying functions
if isinstance(s_value, annmodel.SomePBC):
- if s_value.getKind() == description.MethodDesc:
+ if not s_value.isNone() and s_value.getKind() == description.MethodDesc:
s_value = self.classdef.lookup_filter(s_value)
funcdescs = [mdesc.funcdesc for mdesc in s_value.descriptions]
return annmodel.SomePBC(funcdescs)
More information about the Pypy-commit
mailing list