Skip to content

Instantly share code, notes, and snippets.

@glenrobertson
Created March 29, 2012 20:16
Show Gist options
  • Save glenrobertson/2243253 to your computer and use it in GitHub Desktop.
Save glenrobertson/2243253 to your computer and use it in GitHub Desktop.
xrange for decimals
def xrange_decimal(start, stop, step):
i = start
while i < stop:
yield i
i += step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment