Advertisement
pellekrogholt

Untitled

Jan 19th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # foo.py
  2. h = "foo"
  3. print h
  4.  
  5. # 1) emacs select all
  6. # 2) c-c | (python-mode: execute region)
  7.  
  8. Python 2.7.5 (default, Aug 25 2013, 00:04:04)
  9. [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
  10. Type "help", "copyright", "credits" or "license" for more information.
  11. >>> Traceback (most recent call last):
  12. File "<stdin>", line 1, in <module>
  13. ImportError: No module named IPython.core.completerlib
  14. >>> import os;os.chdir("/tmp/")
  15. >>> exec(compile(open('/var/folders/0w/3cxrx6ds2txfqz5s447blww00000gn/T//python-65918FeD.py').read(), '/var/folders/0w/3cxrx6ds2txfqz5s447blww00000gn/T//python-65918FeD.py', 'exec')) # PYTHON-MODE
  16. foo
  17. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement