t174.trans 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Module(body=[Assign(targets=[Name(id='longvalue',
  2. ctx=Store())],
  3. value=Num(n=9999999999999)),
  4. Print(dest=None,
  5. values=[BinOp(left=Str(s='%3ld'),
  6. op=Mod(),
  7. right=Num(n=42))],
  8. nl=True),
  9. Print(dest=None,
  10. values=[BinOp(left=Str(s='%d'),
  11. op=Mod(),
  12. right=Num(n=42))],
  13. nl=True),
  14. Print(dest=None,
  15. values=[BinOp(left=Str(s='%d'),
  16. op=Mod(),
  17. right=Num(n=42))],
  18. nl=True),
  19. Print(dest=None,
  20. values=[BinOp(left=Str(s='%d'),
  21. op=Mod(),
  22. right=Name(id='longvalue',
  23. ctx=Load()))],
  24. nl=True),
  25. Print(dest=None,
  26. values=[BinOp(left=Str(s='%07.2f'),
  27. op=Mod(),
  28. right=Num(n=42))],
  29. nl=True),
  30. Print(dest=None,
  31. values=[BinOp(left=Str(s='%07.2F'),
  32. op=Mod(),
  33. right=Num(n=42))],
  34. nl=True),
  35. Print(dest=None,
  36. values=[BinOp(left=Str(s='%(foo)s'),
  37. op=Mod(),
  38. right=Dict(keys=[Str(s='foo')],
  39. values=[Str(s='bar')]))],
  40. nl=True),
  41. Print(dest=None,
  42. values=[BinOp(left=Str(s='%sx'),
  43. op=Mod(),
  44. right=BinOp(left=Num(n=103),
  45. op=Mult(),
  46. right=Str(s='a')))],
  47. nl=True)])