Hello again, I will check the following test in when it is fixed: def test_undetected_mutation(self): # Python 2.4a1 did not always detect mutation memorywaster = [] for i in range(20): def mutating_cmp(x, y): L.append(3) L.pop() return cmp(x, y) L = [1,2] self.assertRaises(ValueError, L.sort, mutating_cmp) def mutating_cmp(x, y): L.append(3) del L[:] return cmp(x, y) self.assertRaises(ValueError, L.sort, mutating_cmp) memorywaster = [memorywaster] In the two parts, the list is emptied using two different ways: L.pop() which uses list_resize(), and del L[:] which uses list_ass_slice(). On my Linux machine, the first test eventually fails on yesterday's CVS head, but the second one passes. Conversely, today's CVS makes the first test pass but the second one fail. Armin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4