Created
March 29, 2012 20:16
-
-
Save glenrobertson/2243253 to your computer and use it in GitHub Desktop.
xrange for decimals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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