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

Delta Between Two Patch Sets: Lib/test/test_mutants.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, 1 week 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 from test.test_support import verbose, TESTFN 1 from test.test_support import verbose, TESTFN
2 import random 2 import random
3 import os 3 import os
4 4
5 # From SF bug #422121: Insecurities in dict comparison. 5 # From SF bug #422121: Insecurities in dict comparison.
6 6
7 # Safety of code doing comparisons has been an historical Python weak spot. 7 # Safety of code doing comparisons has been an historical Python weak spot.
8 # The problem is that comparison of structures written in C *naturally* 8 # The problem is that comparison of structures written in C *naturally*
9 # wants to hold on to things like the size of the container, or "the 9 # wants to hold on to things like the size of the container, or "the
10 # biggest" containee so far, across a traversal of the container; but 10 # biggest" containee so far, across a traversal of the container; but
(...skipping 271 matching lines...) Show 10 above Show 10 below
282 try: 282 try:
283 print(dict[Machiavelli3(2)], file=f) 283 print(dict[Machiavelli3(2)], file=f)
284 except KeyError: 284 except KeyError:
285 pass 285 pass
286 finally: 286 finally:
287 f.close() 287 f.close()
288 os.unlink(TESTFN) 288 os.unlink(TESTFN)
289 289
290 del dict 290 del dict
291 del dict1, dict2, dict1keys, dict2keys 291 del dict1, dict2, dict1keys, dict2keys
LEFTRIGHT

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