TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Bpython is a fancy interface to Python

88 pointsby interroover 12 years ago

14 comments

busterover 12 years ago
It's the first thing i install in my virtualenvs. Much better then the standard interactive console and just works out of the box. If you don't want more then tab completion, docstrings and a working command history between sessions it is great! For more stuff, see ipython.
ufoover 12 years ago
I see BPython has a list of alternative pretty interpreters listed on its page. iPython (that I know of) and DreamPie (that I don 't know of).<p><a href="http://bpython-interpreter.org/alternatives/" rel="nofollow">http://bpython-interpreter.org/alternatives/</a><p>Can anyone say how they all compare to each other?
评论 #5124992 未加载
wyuenhoover 12 years ago
This is a great project that's been posted here on HN a couple of times already. I like this project a lot but I can't use it on my Mac because it swallows all the libedit/readline keyboard shortcuts I've come to expect from any REPL. Shame.
评论 #5127839 未加载
评论 #5124836 未加载
thauckover 12 years ago
Bpython is good, but IPython with %edit and knowledge of a command line text editor has changed my workflow[1]. I wish more repls had this ability.<p>[1]: Maybe you can do it Bpython and I'm just not aware.
评论 #5124494 未加载
评论 #5127856 未加载
Alex3917over 12 years ago
Quick warning: Bpython crashes if you need to resize the terminal on OS X. And because it truncates the output to what can fit on the screen, it's essentially unusable for things with a long output. (Because if you need to scroll or resize the window to see the full output, it will crash.) It's amazingly good for most things, but occasionally I need to switch back to the default interpreter.
评论 #5124917 未加载
评论 #5125431 未加载
andybakover 12 years ago
Also see iPython. Not as pretty but has an astonishing range of capabilities.
评论 #5127857 未加载
评论 #5128450 未加载
NelsonMinarover 12 years ago
You can install bpython with a simple "pip install bpython". (This isn't immediately obvious from the website.)
评论 #5124768 未加载
gejjaxxitaover 12 years ago
I'm finding it extremely buggy. For example - pressing F8 when no code has been entered yet causes a TypeError. I will post this on the mailing list but considering it's an old (~4yrs?) project I'm surprised such issues haven't been fixed.
评论 #5125412 未加载
评论 #5124623 未加载
cm127over 12 years ago
Tried "pip install bpython" on Windows 7, but I get an ImportError: No module named _curses.
评论 #5124850 未加载
评论 #5125188 未加载
darrellsilverover 12 years ago
This looks like a great way to learn, too! The REPL is a fantastic place to play around.<p>Awesome.
knesover 12 years ago
Just installed it and it is AWESOME! I love the auto indent and auto complete!
TorbjornLundeover 12 years ago
Really cool. Does something similar exist for Ruby?
评论 #5124267 未加载
ddonlineover 12 years ago
Oh you fancy huh? Nice work!
anujbansover 12 years ago
This is awesome :)