This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients 0xl3vi, barry, serhiy.storchaka, yan12125
Date 2017-03-14.22:05:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20170314180519.3101fed7@subdivisions.wooz.org>
In-reply-to <1489318971.89.0.0703868184894.issue29779@psf.upfronthosting.co.za>
Content
On Mar 12, 2017, at 11:42 AM, Chi Hsuan Yen wrote:

>That's a great feature! Here's a question: what should be CPython's behavior
>when PYTHONHISTORY is explicitly set to empty? Currently there's an error:
>
>$ PYTHONHISTORY= ./python
>Python 3.7.0a0 (master:f6595983e08fe20cf06a2535d74d912c6dbb044f, Mar 12 2017, 19:22:29) 
>[GCC 6.3.1 20170306] on linux
>Type "help", "copyright", "credits" or "license" for more information.
>>>>   
>Error in atexit._run_exitfuncs:
>FileNotFoundError: [Errno 2] No such file or directory

Yeah, that's not good.  I'll note that in the PR.

(But also note that you have to unset PYTHONSTARTUP if you, like me, use that
as the old school way of enabling history.)

>Maybe it's better to just disable the history functionality in this case?

It should use the default, but it shouldn't cause an error.
History
Date User Action Args
2017-03-14 22:05:22barrysetrecipients: + barry, serhiy.storchaka, yan12125, 0xl3vi
2017-03-14 22:05:22barrylinkissue29779 messages
2017-03-14 22:05:22barrycreate