Python Forum
creating my own file-like object
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
creating my own file-like object
#1
how much must i implement to create a file-like object that can have a reference to it passed along as argument one in open() as well as the file object in other functions like bz2.open() (an arbitrary example). i am making an I/O-like data filter but suspect i cannot thoroughly make test code for it. i will be making objects for reading and objects for writing but no objects for both reading and writing although that might also be interesting.
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 an unlinked invisible file, writing it, then linking it Skaperen 2 1,319 Feb-21-2023, 05:40 PM
Last Post: Skaperen
  creating a dummy file object Skaperen 1 1,944 Oct-27-2021, 07:50 AM
Last Post: Gribouillis
  i want to create my own file-like object Skaperen 0 2,074 Apr-17-2020, 11:47 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