Fred> "bash" doesn't make me set a variable to control saving of history Fred> to ~/.bash_history; I'd be perfectly happy if Python wrote Fred> ~/.python_history by default ... Fred, I was just following the trend established with PYTHONSTARTUP. It appears Guido did it that way on purpose... It doesn't much matter to me, though I wonder how system-dependent the code might get if you needed it to be available across multiple platforms. Unix, Windows and Mac all have different (sometimes nonexistent) notions of HOME, so it would be difficult to implement one mechanism that worked in a foolproof way. As for limiting the number of lines read or written (where should the truncation take place?), I'll gladly add a size parameter to either read_history or write_history if the underlying readline functions support the capability. Skip
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4