Skip to content

Instantly share code, notes, and snippets.

@pjbull
Last active April 4, 2021 06:49
Show Gist options
  • Save pjbull/1b8f92b84a40cd6fe2033468f98594a4 to your computer and use it in GitHub Desktop.
Save pjbull/1b8f92b84a40cd6fe2033468f98594a4 to your computer and use it in GitHub Desktop.
Can we detect if a class implementing __fspath__ is called with a writeable mode from open?
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment