t491.trans 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Module(body=[ClassDef(name='f',
  2. bases=[Name(id='object',
  3. ctx=Load())],
  4. body=[FunctionDef(name='__init__',
  5. args=arguments(args=[Name(id='self',
  6. ctx=Param()),
  7. Name(id='w',
  8. ctx=Param()),
  9. Name(id='x',
  10. ctx=Param()),
  11. Name(id='y',
  12. ctx=Param()),
  13. Name(id='z',
  14. ctx=Param())],
  15. vararg=None,
  16. kwarg=None,
  17. defaults=[Num(n=1),
  18. Num(n=2),
  19. Num(n=3)]),
  20. body=[Print(dest=None,
  21. values=[Name(id='w',
  22. ctx=Load()),
  23. Name(id='x',
  24. ctx=Load()),
  25. Name(id='y',
  26. ctx=Load()),
  27. Name(id='z',
  28. ctx=Load())],
  29. nl=True)],
  30. decorator_list=[])],
  31. decorator_list=[]),
  32. Assign(targets=[Name(id='z',
  33. ctx=Store())],
  34. value=Str(s='x')),
  35. Expr(value=Call(func=Name(id='f',
  36. ctx=Load()),
  37. args=[Str(s='a')],
  38. keywords=[],
  39. starargs=None,
  40. kwargs=None)),
  41. Expr(value=Call(func=Name(id='f',
  42. ctx=Load()),
  43. args=[Str(s='a'),
  44. Num(n=3)],
  45. keywords=[],
  46. starargs=None,
  47. kwargs=None)),
  48. Expr(value=Call(func=Name(id='f',
  49. ctx=Load()),
  50. args=[Str(s='a'),
  51. Num(n=3)],
  52. keywords=[keyword(arg='y',
  53. value=Str(s='z'))],
  54. starargs=None,
  55. kwargs=None))])