I have tried looking into the documentation and google search , but I am unable to find out the significance of the [clazz] at the end of method. Could someone help me understand the meaning of the [clazz] at the end of the method? Thanks.
def get_context_setter(context, clazz):
        return {
            int: context.setFieldToInt,
            datetime: context.setFieldToDatetime
        }[clazz]
setFieldToInt and setFieldToDatetime are methods inside context class.
 
     
     
    