From a7021bece21337b39dabd32487d321d862f2b365 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 5 Jul 2013 02:13:24 -0500 Subject: [PATCH] speedup in getattr, thanks Michele --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 7252c8ca..6cb48b73 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.07.03.17.15.42 +Version 2.6.0-development+timestamp.2013.07.05.02.12.46 diff --git a/gluon/dal.py b/gluon/dal.py index 15449ba9..f2592868 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -6870,7 +6870,7 @@ class Row(object): def __getitem__(self, k): key=str(k) _extra = self.__dict__.get('_extra', None) - if _extra: + if _extra is not None: v = _extra.get(key, None) if v: return v