4 ms·
You could write a script called 'python' that runs bpython if passed no parameters and python otherwise.
by lucian1900 14y ago
You could write a script called 'python' that runs bpython if passed no parameters and python otherwise.
- bobfarrell 14y agoActually 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.