V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Jan 28, 2013 · 4981 views
    This topic created in 4850 days ago, the information mentioned may be changed or developed.
    前两天还在想找一个好点的Python REPL来着.. 今天上HN就看到了,真巧 :-)
    http://bpython-interpreter.org/screenshots/

    pip install bpython 即可安装

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

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

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

    不过对于调试代码很方便……
    ThunderEX
        2
    ThunderEX  
       Jan 28, 2013
    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  
       Jan 28, 2013 via Android   ❤️ 1
    @ThunderEX _curses 模块缺失。我记得是 Windows 下的 Python 是没有这个模块的。
    yegle
        5
    yegle  
       Jan 28, 2013
    回帖感谢,心都化了…太好用了…
    luztak
        6
    luztak  
       Jan 28, 2013
    CLI?
    名字看着像jython之类的 囧
    run2
        7
    run2  
       Jan 28, 2013
    MIT License 哇,谁来弄个sublime port啊
    whtsky
        8
    whtsky  
       Jan 28, 2013 via iPhone
    @luztak REPL
    Asimov
        9
    Asimov  
       Jan 28, 2013
    REPL 是什么 这个和 iPython有什么不一样


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

    可以用 Cygwin 里的 Python 装 bpython,Cygwin 是有 curses 库的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2893 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 11:24 · PVG 19:24 · LAX 04:24 · JFK 07:24
    ♥ Do have faith in what you're doing.