Python Forum
i want to create my own file-like object
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want to create my own file-like object
#1
i want to create my own file-like object that behaves by renaming a file to be written to append a unique temporary string to the created name and on close to close the open file and rename the temporary file name to the given one. this could also do meaningful checks to be sure that permission is such that the rename is allowed, or raising an exception at open time instead of getting it at close time.

your suggestions?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  creating my own file-like object Skaperen 0 1,170 Feb-06-2022, 08:25 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020