Python Forum
what works with the with statement?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what works with the with statement?
#3
If an object has an __enter__() method and an __exit__() method, you can normally use it with the with statement.
Reply


Messages In This Thread
what works with the with statement? - by Skaperen - Jan-02-2022, 11:19 PM
RE: what works with the with statement? - by Gribouillis - Jan-03-2022, 08:09 AM

Forum Jump:

User Panel Messages

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