Created
March 29, 2015 18:18
-
-
Save ybur-yug/8ecf3e7e74b315a0bc05 to your computer and use it in GitHub Desktop.
This is the vanilla python interpreter before and after importing some system libs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devbox% python | |
Python 2.7.8 (default, Oct 20 2014, 15:05:19) | |
[GCC 4.9.1] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> os | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'os' is not defined | |
>>> sys | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'sys' is not defined | |
>>> re | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 're' is not defined | |
>>> import os | |
>>> import sys | |
>>> import re | |
>>> os | |
<module 'os' from '/usr/lib/python2.7/os.pyc'> | |
>>> sys | |
<module 'sys' (built-in)> | |
>>> re | |
<module 're' from '/usr/lib/python2.7/re.pyc'> | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment