DMSTA
DMSTA

Reputation: 202

Recover overwritten .py file overwitten using Spyder

I know I should have used version control but I have accidentally overwritten a script (.py file) by saving another script with exactly the same name while using Spyder.

Is there any way at all this can be recovered?

Upvotes: 1

Views: 6627

Answers (1)

Nachtwache
Nachtwache

Reputation: 103

Once the file has been compiled to a pyc it is lost. If you still have the old pyc file you may be able to decompile it:

Is it possible to decompile a compiled .pyc file into a .py file?

Upvotes: 0

Related Questions