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 vkbo
Recipients vkbo
Date 2020-10-14.09:13:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602666780.35.0.123593170196.issue42032@roundup.psfhosted.org>
In-reply-to
Content
Correction: The pycache is in fact redirected to the new '~' folder.

In any case, I tested a bit on Debian Bullseye (Python 3.8.6) and Ubuntu 20.04 (Python 3.8.5) and it seems ~ is not expanded in the environment variable Debian. I'm a little uncertain what is the expected behaviour here, but the sys.pycache_prefix variable returns different results on the two platforms:

With environment variable set to ~/.pycache on 3.8.6 (on debian testing), I get the following:

Python 3.8.6 (default, Sep 25 2020, 09:36:53) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.pycache_prefix
'~/.pycache'
>>> 

Doing the same on 3.8.5 on ubuntu 20.04 produces:

Python 3.8.5 (default, Jul 28 2020, 12:59:40) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.pycache_prefix
'/home/******/.pycache'
>>> 

Still, perhaps the pycache_prefix should expand the ~ on linux?
History
Date User Action Args
2020-10-14 09:13:00vkbosetrecipients: + vkbo
2020-10-14 09:13:00vkbosetmessageid: <1602666780.35.0.123593170196.issue42032@roundup.psfhosted.org>
2020-10-14 09:13:00vkbolinkissue42032 messages
2020-10-14 09:13:00vkbocreate