def _get_skiprows(skiprows):
 if isinstance(skiprows, slice):
  return lrange((skiprows.start or 0), skiprows.stop, (skiprows.step or 1))
 elif (isinstance(skiprows, numbers.Integral) or is_list_like(skiprows)):
  return skiprows
 elif (skiprows is None):
  return 0
 raise TypeError(('%r is not a valid type for skipping rows' % type(skiprows).__name__))

def _get_skiprows ( skiprows ) : if isinstance ( skiprows , slice ) : return lrange ( ( skiprows . start or 0 ) , skiprows . stop , ( skiprows . step or 1 ) ) elif ( isinstance ( skiprows , numbers . Integral ) or is_list_like ( skiprows ) ) : return skiprows elif ( skiprows is None ) : return 0 raise TypeError ( ( '%r is not a valid type for skipping rows' % type ( skiprows ) . __name__ ) )
get an iterator given an integer .