PyDocs

Nav

Data Compression and Archiving

Path.open

zipfile

method of Path (source)
  • Path.open(mode='r', *, pwd, **)
Open this entry as text or binary following the semantics
of ``pathlib.Path.open()`` by passing arguments through
to io.TextIOWrapper().
Changed in 3.9, 3.11.2
  • 3.9: Added support for text and binary modes for open. Default mode is now text.
  • 3.11.2: The encoding parameter can be supplied as a positional argument without causing a TypeError. As it could in 3.9. Code needing to be compatible with unpatched 3.10 and 3.11 versions must pass all io.TextIOWrapper arguments, encoding included, as keywords.
0 Examples
No examples for zipfile/Path.open.
See Also
No see-alsos for zipfile/Path.open
0 Notes
No notes for Path.open