Don't like ads? PRO users don't see any ads ;-)
Guest

Crashing Python with random code and the output that follows

By: a guest on May 13th, 2012  |  syntax: Python  |  size: 0.68 KB  |  hits: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
  2. Type "help", "copyright", "credits" or "license" for more information.
  3. >>> import os, marshal
  4. >>> while True:
  5. ...     try:
  6. ...         marshal.loads(os.urandom(16))
  7. ...     except:
  8. ...         pass
  9. ...
  10. Ellipsis
  11. {}
  12. False
  13. Ellipsis
  14. -1.1896525648145996e-284
  15. False
  16. <type 'exceptions.StopIteration'>
  17. -318092258
  18. <type 'exceptions.StopIteration'>
  19. Ellipsis
  20. 7983894170456109192L
  21. Ellipsis
  22. <type 'exceptions.StopIteration'>
  23. -2057347160
  24. False
  25. True
  26. True
  27. -253349990
  28. False
  29. True
  30. Ellipsis
  31. <type 'exceptions.StopIteration'>
  32. <type 'exceptions.StopIteration'>
  33. -7474105330729708238L
  34. -8953501658422433946L