@unbox(types.SliceType)
def unbox_slice(typ, obj, c):
 from . import slicing
 (ok, start, stop, step) = c.pyapi.slice_as_ints(obj)
 sli = c.context.make_helper(c.builder, typ)
 sli.start = start
 sli.stop = stop
 sli.step = step
 return NativeValue(sli._getvalue(), is_error=c.builder.not_(ok))

@ unbox ( types . SliceType ) def unbox_slice ( typ , obj , c ) : from . import slicing ( ok , start , stop , step ) = c . pyapi . slice_as_ints ( obj ) sli = c . context . make_helper ( c . builder , typ ) sli . start = start sli . stop = stop sli . step = step return NativeValue ( sli . _getvalue ( ) , is_error = c . builder . not_ ( ok ) )
convert object *obj* to a native slice structure .