Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 i want to make my own context manager
#1
i want to make my own context manager. maybe more than one. i'm reading docs for module contextmanager but it seems to not be very thorough. the first one i want to make is to be file-object-like object. that is, it should be usable like a file object, including as a context manager (so its creator can be used in a with statement in place of open(). this is one reason i haven been reading up on file-object methods (to see what all i need to implement.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  turning my function into a context manager Skaperen 2 124 Nov-14-2019, 09:08 PM
Last Post: Skaperen
  same context functions Skaperen 12 667 Jun-18-2019, 06:09 PM
Last Post: Skaperen
  Windows Context Menu Depth GWild 0 668 Jan-27-2018, 07:18 AM
Last Post: GWild

Forum Jump:


Users browsing this thread: 1 Guest(s)