Skip to content

Path.write_text() and Path.write_bytes() don't explain their return value #149611

@nedbat

Description

@nedbat

Documentation

https://docs.python.org/3/library/pathlib.html#pathlib.Path.write_text shows examples of returning an integer, but there is no mention of what the value represents. (It's the number of characters or bytes written).

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc direasy

    Projects

    Status

    No status

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions