[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/expressions.py Actually, the reference implementation does not allow dictionary objects to provide its attributes, only keys.

Malthe Borch mborch at gmail.com
Tue Mar 10 12:43:17 EDT 2009


Log message for revision 97810:
  Actually, the reference implementation does not allow dictionary objects to provide its attributes, only keys.

Changed:
  U   z3c.pt/trunk/src/z3c/pt/expressions.py

-=-
Modified: z3c.pt/trunk/src/z3c/pt/expressions.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/expressions.py	2009-03-10 15:42:33 UTC (rev 97809)
+++ z3c.pt/trunk/src/z3c/pt/expressions.py	2009-03-10 16:43:16 UTC (rev 97810)
@@ -62,9 +62,6 @@
                 # special-case dicts for performance reasons
                 if isinstance(base, dict):
                     next = base.get(name, _marker)
-
-                    if next is _marker:
-                        next = getattr(base, name, _marker)
                 else:
                     next = getattr(base, name, _marker)
                 



More information about the Checkins mailing list