[Tutor] wiped file
gokoproject at gmail.com
Thu Jul 14 18:19:00 EDT 2016
Alan made really good points, standard practice, however, on Linux and
MacOSX, usually if you use editors like VIM, a temporary file is always
created. For Windows, I am not sure 100%. Check your editor, your editor
may have saved a cache file but marked as hidden file. For example,
Notepad++ has this feature:
I made my point because version control system (VCS) is an on-demand
software. Unless you instruct VCS to keep "version controlling" your code,
it will only keep the last copy. Furthermore, you'd have to store the VCS
repository somewhere else. For example, if you are using Git, you may use
BitBucket, GitHub, Gitlab to store a remote copy.
On Thu, Jul 14, 2016 at 11:13 AM, Alan Gauld via Tutor <tutor at python.org>
> On 14/07/16 05:06, Noah Stickel wrote:
> > i open a python file in IDLE (python 3.5.1) and then my computer froze
> > after displaying an error 40 message (i have a DELL PC) and when i
> > restarted it i discovered that the file had been completely wiped clean.
> > i still have the file but there is nothing in it. is there anyway i can
> > restore the contents of this python file?
> If you stored the file on the cloud (Dropbox, Google drive etc)
> you may be able to recover old versions. If you run Linux you
> may have a journalling file-system that can recover previous
> Alternatively you may have committed the file to a version
> control system? In that case simply check out the old version.
> And of course if you regularly backup your disks then your
> backup programme can probably retrieve the last saved version.
> If none of the above applies then now you know why they should! :-(
> Alan G
> Author of the Learn to Program web site
> Follow my photo-blog on Flickr at:
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
More information about the Tutor