Re:Bpython is a fancy interface to the Python interpreter
by lucian1900 on Monday May 21, 2012 @06:13AM
(#4002113)
You could write a script called 'python' that runs bpython if passed no parameters and python otherwise.
[ Parent
| on HN ]
Re:Bpython is a fancy interface to the Python interpreter
by bobfarrell on Tuesday May 22, 2012 @08:49AM
(#4007514)
Actually you don't even have to do that - just alias "python" for "bpython" and bpython automagically instantiates the actual python if it is passed arguments, i.e. "bpython foo.py" is essentially the same as "python foo.py" - this feature was implemented for this reason, so you could just make an alias.