summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-06-27 23:17:35 +0000
committerBrett Cannon <bcannon@gmail.com>2004-06-27 23:17:35 +0000
commitc2b151c66ee9bc6e686400ee93e65e07d1999888 (patch)
tree340f966be65a31060bbe8d47a272df9c861f69da /Python
parenta6b3caad417c0472b611be251d623331744079a5 (diff)
downloadcpython-git-c2b151c66ee9bc6e686400ee93e65e07d1999888.tar.gz
Add code for a range function that uses generators.
Cleaned up existing code by abstracting code to parse arguments. Also removed any unneeded operations (such as calling 'int' on a division when using floor division also works). Fixed a bug where the values returned by OldStyleRange could be short by one value. Added more documentation. Testing code also has a basic sanity check.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions