I really like the "instant" auto-completion. Can someone throw light on how it was done?
[1] https://bitbucket.org/bobf/bpython/src/2b3fb2cb6500/bpython/...
[2] https://bitbucket.org/bobf/bpython/src/2b3fb2cb6500/bpython/...
[3] http://docs.python.org/library/rlcompleter.html
[4] https://bitbucket.org/bobf/bpython/src/2b3fb2cb6500/bpython/...