maggienj / ActiveData

Provide high speed filtering and aggregation over data
Mozilla Public License 2.0
0 stars 0 forks source link

curious to know why we convert 'dict' to 'data' type #62

Closed maggienj closed 7 years ago

maggienj commented 7 years ago

curious to know why we convert 'dict' to 'data' type i'm sure there is a reason behind it, which i dont get it.

def wrap(v):
    type_ = _get(v, "__class__")

    if type_ is dict:
        m = object.__new__(Data)
        _set(m, "_dict", v)
        return m
klahnakoski commented 7 years ago

dict is difficult to use;

https://github.com/klahnakoski/mo-dots