This is probably a silly question, and I'll probably end up deleting it once I figure it out, but I swear I recall reading, in the Python 3.5 docs, how to change the >>>
on the Python interactive prompt, such as how calling help()
will change it to help>
. But for some reason, when I've gone back to try and remember, I just can't find the instructions to it. Does anyone know if this is possible, or am I just imagining things?
Thanks
You remember correctly.
It's in the sys module (sys.ps1 & sys.ps2):
For example:
It's great to set it to either:
Paste this into your bash shell:
Finally add this line to your
~/.bash_profile
:export PYTHONSTARTUP=~/.pyrc
Enjoy!