pythran/types/types.py
def visit_Constant(self, node):
        """ Set the pythonic constant type. """
        ty = type(node.value)
        if ty is str and len(node.value) == 1:
            sty = 'pythonic::types::chr'
        else:
            sty = pytype_to_ctype(ty)
        if node in self.immediates:
            sty = "std::integral_constant<%s, %s>" % (sty,
                                                      str(node.value).lower())
        self.result[node] = self.builder.NamedType(sty)
 Set the pythonic constant type. 
Set the pythonic constant type.
Set the pythonic constant type .
def visit_Constant(self, node):
        ty = type(node.value)
        if ty is str and len(node.value) == 1:
            sty = 'pythonic::types::chr'
        else:
            sty = pytype_to_ctype(ty)
        if node in self.immediates:
            sty = "std::integral_constant<%s, %s>" % (sty,
                                                      str(node.value).lower())
        self.result[node] = self.builder.NamedType(sty)
def visit_Constant ( self , node ) : ty = type ( node . value ) if ty is str and len ( node . value ) == 1 : sty = 'pythonic::types::chr' else : sty = pytype_to_ctype ( ty ) if node in self . immediates : sty = "std::integral_constant<%s, %s>" % ( sty , str ( node . value ) . lower ( ) ) self . result [ node ] = self . builder . NamedType ( sty )
Set the pythonic constant type.
Set the pythonic constant type .
""" Set the pythonic constant type. """
self
node