Score:0

restore __pycache__ folder from trash ubuntu 18.04

my flag

I accidentally removed pycache folder in my computer running ubuntu 18.04 lts and when I try to restore it gives me the error message

Item in the trash may not be modified

How to fix this?

Score:1
cn flag

You don't mention how you intended to restore it,and what led to this error message, so help on the actual question is not possible.

From an other viewpoint, you actually do not need to worry about restoring that folder. __pycache__ is a directory that is automatically created by the Python runtime to store byte-compiled code from the python source in the current folder. Thus, next time you run the code in that folder, python will recompile the code and you will see your __pycache__ folder back.

Note: this behavior is different from older Python versions, where the compiled files were stored in the same directory as the sources.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.