Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(48)

Delta Between Two Patch Sets: Lib/test/test_enumerate.py

Issue 602: range: lean and mean (Closed) SVN Base: http://svn.python.org/view/*checkout*/python/branches/py3k/
Left Patch Set: address more concerns Created 5 months, 1 week ago , Downloaded from: http://bugs.python.org/file10183/range_lean_and_mean5.patch
Right Patch Set: __len__ is back! Created 5 months, 2 weeks ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 import unittest 1 import unittest
2 import sys 2 import sys
3 3
4 from test import test_support 4 from test import test_support
5 5
6 class G: 6 class G:
7 'Sequence using __getitem__' 7 'Sequence using __getitem__'
8 def __init__(self, seqn): 8 def __init__(self, seqn):
9 self.seqn = seqn 9 self.seqn = seqn
10 def __getitem__(self, i): 10 def __getitem__(self, i):
(...skipping 194 matching lines...) Show 10 above Show 10 below
205 import sys 205 import sys
206 if verbose and hasattr(sys, "gettotalrefcount"): 206 if verbose and hasattr(sys, "gettotalrefcount"):
207 counts = [None] * 5 207 counts = [None] * 5
208 for i in range(len(counts)): 208 for i in range(len(counts)):
209 test_support.run_unittest(*testclasses) 209 test_support.run_unittest(*testclasses)
210 counts[i] = sys.gettotalrefcount() 210 counts[i] = sys.gettotalrefcount()
211 print(counts) 211 print(counts)
212 212
213 if __name__ == "__main__": 213 if __name__ == "__main__":
214 test_main(verbose=True) 214 test_main(verbose=True)
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r338