parameters: (context, builder, typ, slicestruct)
docstring: Guard against *slicestruct* having a zero step (and raise ValueError).
docstring_summary: Guard against *slicestruct* having a zero step (and raise ValueError).
docstring_tokens: Guard against * slicestruct * having a zero step ( and raise ValueError ) .
function: def guard_invalid_slice(context, builder, typ, slicestruct):
      """
      Guard against *slicestruct* having a zero step (and raise ValueError).
      """
      if typ.has_step:
          cgutils.guard_null(context, builder, slicestruct.step,
                             (ValueError, "slice step cannot be zero"))
function_tokens: def guard_invalid_slice ( context , builder , typ , slicestruct ) : if typ . has_step : cgutils . guard_null ( context , builder , slicestruct . step , ( ValueError , "slice step cannot be zero" ) )