Skip to content

There is a typo in docstring for read method of _io.TextIOWrapper class #101228

Closed
@ppmfloss

Description

@ppmfloss

Documentation

The docstring of the read method of _io.TextIOWrapper class has a typo.
The argument name size is not used in the explanation.

>>> file = open("/tmp/junk")
>>> help(file.read)

read(size=-1, /) method of _io.TextIOWrapper instance
    Read at most n characters from stream.
    
    Read from underlying buffer until we have n characters or we hit EOF.
    If n is negative or omitted, read until EOF.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions