V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Kymair
V2EX  ›  Python

Bpython is fancy interface to the Python

  •  
  •   Kymair ·
    kymair · 2013-01-28 01:32:10 +08:00 · 4123 次点击
    这是一个创建于 4110 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前两天还在想找一个好点的Python REPL来着.. 今天上HN就看到了,真巧 :-)
    http://bpython-interpreter.org/screenshots/

    pip install bpython 即可安装

    这个文档提示就已经够赞了 XD
    12 条回复    1970-01-01 08:00:00 +08:00
    ericFork
        1
    ericFork  
       2013-01-28 01:43:03 +08:00
    用了很久了,爱恨参半……

    提示功能很逆天,但是在 VPS 上卡到不行……

    ipython 还支持像 ls 之类的 shell 原生命令……

    不过对于调试代码很方便……
    ThunderEX
        2
    ThunderEX  
       2013-01-28 09:05:22 +08:00
    Windows上装好了说是:
    Traceback (most recent call last):
    File "C:\Python27\Scripts\bpython-script.py", line 9, in <module>
    load_entry_point('bpython==0.12', 'console_scripts', 'bpython')()
    File "C:\Python27\lib\site-packages\distribute-0.6.34-py2.7.egg\pkg_resources.
    py", line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File "C:\Python27\lib\site-packages\distribute-0.6.34-py2.7.egg\pkg_resources.
    py", line 2307, in load_entry_point
    return ep.load()
    File "C:\Python27\lib\site-packages\distribute-0.6.34-py2.7.egg\pkg_resources.
    py", line 2013, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
    File "C:\Python27\lib\site-packages\bpython-0.12-py2.7.egg\bpython\cli.py", li
    ne 47, in <module>
    import curses
    File "C:\Python27\lib\curses\__init__.py", line 15, in <module>
    from _curses import *
    ImportError: No module named _curses
    wontoncc
        3
    wontoncc  
       2013-01-28 09:34:24 +08:00 via Android   ❤️ 1
    @ThunderEX _curses 模块缺失。我记得是 Windows 下的 Python 是没有这个模块的。
    timonwong
        4
    timonwong  
       2013-01-28 09:43:57 +08:00   ❤️ 1
    yegle
        5
    yegle  
       2013-01-28 12:13:57 +08:00
    回帖感谢,心都化了…太好用了…
    luztak
        6
    luztak  
       2013-01-28 12:16:15 +08:00
    CLI?
    名字看着像jython之类的 囧
    sobigfish
        7
    sobigfish  
       2013-01-28 12:21:51 +08:00
    MIT License 哇,谁来弄个sublime port啊
    whtsky
        8
    whtsky  
       2013-01-28 12:56:22 +08:00 via iPhone
    @luztak REPL
    Asimov
        9
    Asimov  
       2013-01-28 13:11:11 +08:00
    REPL 是什么 这个和 iPython有什么不一样


    @whtsky
    whtsky
        10
    whtsky  
       2013-01-28 13:21:27 +08:00   ❤️ 1
    @Asimov http://en.wikipedia.org/wiki/Read–eval–print_loop
    没用过iPython= =
    很喜欢bpython的各种提示.
    BigZ
        11
    BigZ  
       2013-01-29 00:05:27 +08:00
    不实用,打开python.chm也不是特别费劲的事情
    clowwindy
        12
    clowwindy  
       2013-01-29 00:26:00 +08:00
    @ThunderEX

    可以用 Cygwin 里的 Python 装 bpython,Cygwin 是有 curses 库的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5796 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 01:49 · PVG 09:49 · LAX 18:49 · JFK 21:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.