GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-73965: New environment variable PYTHON_HISTORY by ZackerySpytz · Pull Request #13208 · python/cpython Conversation
|
| can be set to the callable of your debugger of choice. | ||
| .IP PYTHONHISTORY | ||
| This environment variable can be used to set the location of a history file | ||
| (it is \fI~/.python_history\fP by default). |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please, add the windows default as well.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
To be frank, I'm not sure if the Windows default should be mentioned in the man page...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There is nothing wrong with mentioning Windows ops in man pages.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There are few other places in Docs where hardcoded value of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@tirkarthi The first three cases mention The fourth case mentions |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
By the way, on Windows, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The new env var does not obey the sys.flags.ignore_environment flag. Please add a test that the new env var is ignored with -E or -I mode.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could you please reword to explain what the history file actually does? It's non-obvious to users that are not familiar with readline module internals. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @tiran: please review the changes made to this pull request. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Reword what? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Can this be merged? It seems fairly obvious what |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for this! Please make sure there will be no problem with paths with subdirectories that might not be created. E.g. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Any way to help get this through? It looks like it's been ready for a while. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Guys, why on earth are you I was sincerely expecting to find an internal built-in variable named something like While at the same time being met with: readline.write_history_file.__doc__ # 'Save a readline history file. The default filename is ~/.history.' |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please resolve the merge conflicts.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I've resolved conflicts, renamed to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks Hugo! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| "PYTHON_COLORS : If this variable is set to 1, the interpreter will" | ||
| " colorize various kinds of output. Setting it to 0 deactivates this behavior.\n" | ||
| "These variables have equivalent command-line parameters (see --help for details):\n" | ||
| "PYTHON_HISTORY: the location of a .python_history file.\n" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What command line parameter sets it?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It doesn't have one, I compared with PYTHON_COLORS which doesn't either (#112732). Should we add one?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If it doesn't have one, then it is in the wrong section.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good point, please see PR #113798 to move it to the correct section.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
It can be used to set the location of a .python_history file --------- Co-authored-by: Levi Sabah <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
It can be used to set the location of a .python_history file --------- Co-authored-by: Levi Sabah <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
It can be used to set the location of a .python_history file --------- Co-authored-by: Levi Sabah <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
thanks to https://unix.stackexchange.com/questions/630642/change-location-of-python-history - don't use a new folder cause 1) no need for just 1 file 2) python won't make it for you, will just fail to write history. [`xdg-ninja`](https://github.com/b3nj5m1n/xdg-ninja) is good, we need more all-in-one places for doing config like this. but it's more or less just a community thing will need a place for these lines in zshrc /shrug + try some LSP servers + bat hard-wraps, less -S is nice
thanks to https://unix.stackexchange.com/questions/630642/change-location-of-python-history - don't use a new folder cause 1) no need for just 1 file 2) python won't make it for you, will just fail to write history. [`xdg-ninja`](https://github.com/b3nj5m1n/xdg-ninja) is good, we need more all-in-one places for doing config like this. but it's more or less just a community thing will need a place for these lines in zshrc /shrug + try some LSP servers + bat hard-wraps, less -S is nice
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.