Commit Graph

7 Commits

Author SHA1 Message Date
Brett Cannon c2b151c66e 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.
2004-06-27 23:17:35 +00:00
Walter Dörwald 70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Andrew M. Kuchling 946c53ed7f Run these demo scripts through reindent.py to give them 4-space indents. I've verified that their output is unchanged. 2003-04-24 17:13:18 +00:00
Guido van Rossum e69d3fec87 Use time.time() instead of time.millitimer() 1994-02-17 12:36:58 +00:00
Guido van Rossum 62326f2108 builtin -> __builtin__ 1994-01-26 16:04:38 +00:00
Guido van Rossum 7565b93414 *** empty log message *** 1993-12-17 14:23:52 +00:00
Guido van Rossum e876949f2b Initial revision 1992-08-13 12:14:11 +00:00