def gendict(cls, *args, **kwargs):
        '''
        Pre-translated key dictionary constructor.

        See :type:`dict` for more info.

        :returns: dictionary with uppercase keys
        :rtype: dict
        '''
        gk = cls.genkey
        return dict((gk(k), v) for k, v in dict(*args, **kwargs).items())
def gendict ( cls , * args , ** kwargs ) : gk = cls . genkey return dict ( ( gk ( k ) , v ) for k , v in dict ( * args , ** kwargs ) . items ( ) )
Pre-translated key dictionary constructor.

        See :type:`dict` for more info.

        :returns: dictionary with uppercase keys
        :rtype: dict