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

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

Issue 25843: lambdas on the same line may incorrectly share code objects
Left Patch Set: Created 4 years, 1 month ago
Right Patch Set: Created 4 years, 1 month ago
Left:
Right:
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
« no previous file with change/comment | « Include/code.h ('k') | Objects/codeobject.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 import math 1 import math
2 import os 2 import os
3 import unittest 3 import unittest
4 import sys 4 import sys
5 import _ast 5 import _ast
6 import tempfile 6 import tempfile
7 import types 7 import types
8 from test import support 8 from test import support
9 from test.support import script_helper 9 from test.support import script_helper
10 10
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 self.check_stack_size("x + " * self.N + "x") 688 self.check_stack_size("x + " * self.N + "x")
689 689
690 def test_func_and(self): 690 def test_func_and(self):
691 code = "def f(x):\n" 691 code = "def f(x):\n"
692 code += " x and x\n" * self.N 692 code += " x and x\n" * self.N
693 self.check_stack_size(code) 693 self.check_stack_size(code)
694 694
695 695
696 if __name__ == "__main__": 696 if __name__ == "__main__":
697 unittest.main() 697 unittest.main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+