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?
#4
First attempt to get filename where __enter__ occours:

grep -Rl __enter__ .pyenv/versions/3.11.0a3 | egrep ".py$" | xargs -n1 basename  | egrep -v "^test|^_" | sort -u
To gather more information, you have to use some functions from inspect.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
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 DeaD_EyE - Jan-03-2022, 09:58 AM

Forum Jump:

User Panel Messages

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