> One note on the patch: it allocates an extra stack which is dynamically grown; > but there is no unittest to exercise the stack-growing code.
Isn't this doing it? 1.20 + # Long tuples should be folded too. 1.21 + asm = dis_single(repr(tuple(range(10000)))) 1.22 + # One LOAD_CONST for the tuple, one for the None return value 1.23 + self.assertEqual(asm.count('LOAD_CONST'), 2) 1.24 + self.assertNotIn('BUILD_TUPLE', asm) Eugene _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com