def __getitem__(self, key):
        try:
            v = self.d[key]
            # v is always a sequence
            if v and len(v) == 1:
                return v[0]
            return v
        except (__HOLE__, TypeError):
            # @@@ for this behavior, we should use d.get() instead.
            return None
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/toolbox/formdict.py/FormDict.__getitem__