Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def isindexable(x):
    return getattr(x, '__getitem__', False)
        


src/g/e/genson-HEAD/genson/references.py   genson(Download)
from internal_ops import GenSONOperand
from util import isdict, isindexable
import copy
 
 
            raise Exception("Unknown key: %s" % element_to_resolve)
 
    elif isindexable(current_context):
        element_to_resolve = int(element_to_resolve)
        if not 0 <= element_to_resolve < len(current_context):