t518.trans 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Module(body=[Assign(targets=[Name(id='list',
  2. ctx=Store())],
  3. value=List(elts=[Num(n=0),
  4. Num(n=1),
  5. Num(n=2),
  6. Num(n=3)],
  7. ctx=Load())),
  8. TryExcept(body=[Print(dest=None,
  9. values=[Subscript(value=Name(id='list',
  10. ctx=Load()),
  11. slice=Slice(lower=Num(n=1),
  12. upper=None,
  13. step=Num(n=0)),
  14. ctx=Load())],
  15. nl=True)],
  16. handlers=[ExceptHandler(type=Name(id='ValueError',
  17. ctx=Load()),
  18. name=Name(id='e',
  19. ctx=Store()),
  20. body=[Print(dest=None,
  21. values=[Name(id='e',
  22. ctx=Load())],
  23. nl=True)])],
  24. orelse=[]),
  25. TryExcept(body=[Print(dest=None,
  26. values=[Subscript(value=Name(id='list',
  27. ctx=Load()),
  28. slice=Slice(lower=Num(n=1),
  29. upper=Num(n=3),
  30. step=Num(n=0)),
  31. ctx=Load())],
  32. nl=True)],
  33. handlers=[ExceptHandler(type=Name(id='ValueError',
  34. ctx=Load()),
  35. name=Name(id='e',
  36. ctx=Store()),
  37. body=[Print(dest=None,
  38. values=[Name(id='e',
  39. ctx=Load())],
  40. nl=True)])],
  41. orelse=[])])