pythran/types/types.py
def visit_Slice(self, node):
        """
        Set slicing type using continuous information if provided.

        Also visit subnodes as they may contains relevant typing information.
        """
        self.generic_visit(node)
        if node.step is None or (isnum(node.step) and node.step.value == 1):
            if all(self.range_values[p].low >= 0
                   for p in (node.lower, node.upper)):
                ntype = "pythonic::types::fast_contiguous_slice"
            else:
                ntype = "pythonic::types::contiguous_slice"
            self.result[node] = self.builder.NamedType(ntype)
        else:
            self.result[node] = self.builder.NamedType(
                'pythonic::types::slice')

        Set slicing type using continuous information if provided.

        Also visit subnodes as they may contains relevant typing information.
        
Set slicing type using continuous information if provided.
Also visit subnodes as they may contains relevant typing information.
Set slicing type using continuous information if provided . Also visit subnodes as they may contains relevant typing information .
def visit_Slice(self, node):
        self.generic_visit(node)
        if node.step is None or (isnum(node.step) and node.step.value == 1):
            if all(self.range_values[p].low >= 0
                   for p in (node.lower, node.upper)):
                ntype = "pythonic::types::fast_contiguous_slice"
            else:
                ntype = "pythonic::types::contiguous_slice"
            self.result[node] = self.builder.NamedType(ntype)
        else:
            self.result[node] = self.builder.NamedType(
                'pythonic::types::slice')
def visit_Slice ( self , node ) : self . generic_visit ( node ) if node . step is None or ( isnum ( node . step ) and node . step . value == 1 ) : if all ( self . range_values [ p ] . low >= 0 for p in ( node . lower , node . upper ) ) : ntype = "pythonic::types::fast_contiguous_slice" else : ntype = "pythonic::types::contiguous_slice" self . result [ node ] = self . builder . NamedType ( ntype ) else : self . result [ node ] = self . builder . NamedType ( 'pythonic::types::slice' )
Set slicing type using continuous information if provided.
Set slicing type using continuous information if provided .
"""
        Set slicing type using continuous information if provided.

        Also visit subnodes as they may contains relevant typing information.
        """
self
node