From The Compiler, 6 Years ago, written in Python.
Embed
  1. Python 2.7.3
  2. WeeChat 0.4.0-dev
  3. >>> import weechat
  4. >>> from weechat import *
  5. >>> from math import floor
  6. Traceback (most recent call last):
  7.   File "<console>", line 1, in <module>
  8. ImportError: cannot import name floor
  9. >>> import math
  10. >>> math.floor
  11. Traceback (most recent call last):
  12.   File "<console>", line 1, in <module>
  13. AttributeError: 'module' object has no attribute 'floor'
  14. >>> import sys
  15. >>> print sys.path
  16. ['/home/florian/.weechat/python', '', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
  17. '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/setuptools-0.6c11.egg-info']
  18. >>> print sys.version
  19. 2.7.3 (default, Dec 12 2012, 07:12:24)
  20. [GCC 4.7.2]