t284.trans 5.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Module(body=[FunctionDef(name='f',
  2. args=arguments(args=[Name(id='a',
  3. ctx=Param()),
  4. Name(id='b',
  5. ctx=Param())],
  6. vararg=None,
  7. kwarg='c',
  8. defaults=[]),
  9. body=[Assign(targets=[Name(id='sortc',
  10. ctx=Store())],
  11. value=ListComp(elt=Tuple(elts=[Name(id='x',
  12. ctx=Load()),
  13. Name(id='y',
  14. ctx=Load())],
  15. ctx=Load()),
  16. generators=[comprehension(target=Tuple(elts=[Name(id='x',
  17. ctx=Store()),
  18. Name(id='y',
  19. ctx=Store())],
  20. ctx=Store()),
  21. iter=Call(func=Attribute(value=Name(id='c',
  22. ctx=Load()),
  23. attr='items',
  24. ctx=Load()),
  25. args=[],
  26. keywords=[],
  27. starargs=None,
  28. kwargs=None),
  29. ifs=[])])),
  30. Expr(value=Call(func=Attribute(value=Name(id='sortc',
  31. ctx=Load()),
  32. attr='sort',
  33. ctx=Load()),
  34. args=[],
  35. keywords=[],
  36. starargs=None,
  37. kwargs=None)),
  38. Print(dest=None,
  39. values=[Name(id='a',
  40. ctx=Load()),
  41. Name(id='b',
  42. ctx=Load()),
  43. Name(id='sortc',
  44. ctx=Load())],
  45. nl=True)],
  46. decorator_list=[]),
  47. Expr(value=Call(func=Name(id='f',
  48. ctx=Load()),
  49. args=[Num(n=1),
  50. Num(n=2)],
  51. keywords=[keyword(arg='d',
  52. value=Num(n=4)),
  53. keyword(arg='e',
  54. value=Num(n=5))],
  55. starargs=None,
  56. kwargs=None)),
  57. Expr(value=Call(func=Name(id='f',
  58. ctx=Load()),
  59. args=[Num(n=1)],
  60. keywords=[keyword(arg='b',
  61. value=Num(n=4)),
  62. keyword(arg='e',
  63. value=Num(n=5))],
  64. starargs=None,
  65. kwargs=None)),
  66. Expr(value=Call(func=Name(id='f',
  67. ctx=Load()),
  68. args=[],
  69. keywords=[keyword(arg='a',
  70. value=Num(n=1)),
  71. keyword(arg='b',
  72. value=Num(n=4)),
  73. keyword(arg='e',
  74. value=Num(n=5)),
  75. keyword(arg='f',
  76. value=Num(n=6)),
  77. keyword(arg='g',
  78. value=Num(n=7))],
  79. starargs=None,
  80. kwargs=None))])