diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-06-27 23:17:35 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-06-27 23:17:35 (GMT) |
commit | c2b151c66ee9bc6e686400ee93e65e07d1999888 (patch) | |
tree | 340f966be65a31060bbe8d47a272df9c861f69da /Lib/encodings/__init__.py | |
parent | a6b3caad417c0472b611be251d623331744079a5 (diff) | |
download | cpython-c2b151c66ee9bc6e686400ee93e65e07d1999888.zip cpython-c2b151c66ee9bc6e686400ee93e65e07d1999888.tar.gz cpython-c2b151c66ee9bc6e686400ee93e65e07d1999888.tar.bz2 |
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 'Lib/encodings/__init__.py')
0 files changed, 0 insertions, 0 deletions