[issue44239] Use platform defined data directories instead of ~/.python_history

2021-05-26 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +24969 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26377 ___ Python tracker

[issue44239] Use platform defined data directories instead of ~/.python_history

2021-05-26 Thread oxalica
New submission from oxalica : Currently we use path `~/.python_history` for history file in all platforms. It is not a good choice since it spams in user's home directory. There are already specifications for where to store program data. For Windows, we should use `%APPDATA%/Python/history`;