summaryrefslogtreecommitdiffstats
path: root/Demo/classes/Range.py
Commit message (Collapse)AuthorAgeFilesLines
* Add code for a range function that uses generators.Brett Cannon2004-06-271-42/+64
| | | | | | | | | 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.
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-2/+2
| | | | From SF patch #852334.
* Run these demo scripts through reindent.py to give them 4-space indents. ↵Andrew M. Kuchling2003-04-241-44/+44
| | | | I've verified that their output is unchanged.
* Use time.time() instead of time.millitimer()Guido van Rossum1994-02-171-5/+5
|
* builtin -> __builtin__Guido van Rossum1994-01-261-2/+2
|
* *** empty log message ***Guido van Rossum1993-12-171-3/+2
|
* Initial revisionGuido van Rossum1992-08-131-0/+72