Dec-31-2018, 07:09 PM
Python does have functions to create temporary files that can be used for temporary storage. but what i am looking for it a function to create a file that will have a temporary name and is destined to be renamed or relinked to become a file named with the given name. the caller will do the rename if it is appropriate or will remove the file. a use case would be when the caller is making a change to the contents of the file and must have no point in time when the file could be lost.
my intent is to encapsulate this as a class so that details of relinking, and finding an appropriate name that can be renamed are not dealt with by the caller. instead the caller would finish up by calling a .finish() method with a boolean to indicate if the new file is to be kept.
but i don't want to code this if it is in Python, already.
my intent is to encapsulate this as a class so that details of relinking, and finding an appropriate name that can be renamed are not dealt with by the caller. instead the caller would finish up by calling a .finish() method with a boolean to indicate if the new file is to be kept.
but i don't want to code this if it is in Python, already.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.