On Thu, Oct 27, 2011 at 6:55 AM, Amirouche Boubekki <amirouche.boube...@gmail.com> wrote: > >>> +-------------------+---------------+ >>> | Python protocol | JSON | >>> | or special case | | >>> +===================+===============+ >>> | (ø) __json__ | see (ø) | >>> +-------------------+---------------| >>> | map | object | >> >> I am curious what you mean by the 'map' protocol. > > I mean dictionnary-like objects
How do you propose to detect such objects? isinstance(x, collections.Mapping) ? Cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list