PyDocs

Nav

Data Compression and Archiving

Path.read_text

zipfile

method of Path (source)
  • Path.read_text(*, **)
Read the current file as unicode text. Positional and keyword arguments are passed through to io.TextIOWrapper (except buffer, which is implied by the context).
Changed in 3.11.2
  • 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.read_text.
See Also
No see-alsos for zipfile/Path.read_text
0 Notes
No notes for Path.read_text