2011-07-05 | Paul Boddie | raw annotate files changeset graph | Introduced Instance() in place of None as a result and for the value of the active expression where no definitive object can be deduced. Made all Instance values compare equal to each other in order to avoid duplication in sets. Improved Constant comparisons. Fixed assignment counting where many values are provided in a single assignment. Added inspection support for conditional expressions (since they are used in the standard library). |
1 #!/usr/bin/env python 2 3 def f(a, b, *c): 4 d = 123 # introduce locals in the frame 5 return c 6 7 g = f 8 9 r4 = g(1, 2, 3) 10 r5 = g(1, b=2) 11 r6 = g(1, 2, 3, 4) 12 13 def g(a, c, *b): 14 d = 123 # introduce locals in the frame 15 return b 16 17 r7 = g(1, c=2) 18 r8 = g(1, 2, 3, 4) 19 20 result_0 = len(r5) 21 result_1 = len(r4) 22 result_2 = len(r6) 23 result2_0 = len(r7) 24 result2_2 = len(r8) 25 26 # vim: tabstop=4 expandtab shiftwidth=4