New submission from Jim Fasarakis-Hilliard:

Specifically, the list I've currently found in .py files:


    ValueError("flush of closed file")
    ValueError("flush of closed file")

"of" -> "on" for both.


    ValueError("Required argument `source' not given.")
    ValueError("Cannot specify both `filename' and `source'. "

fix ` on the quotes on argument names.


    ValueError("I/O operatioon on closed pipe")

"operatioon" -> "operation"


    TypeError('data argument must be byte-ish (%r)',
    raise TypeError('data argument must be byte-ish (%r)',

AFAIK, "byte-ish" isn't used elsewhere, the author probably mean to go for 
"bytes-like object".


    errors.HeaderParseError("expected atom at a start of "

"at a start of " -> "at the start of "

- http/

    raise ValueError("filename must be string-like")
I think "must be a str" was intended.

messages: 290491
nosy: Jim Fasarakis-Hilliard
priority: normal
severity: normal
status: open
title: Fix a number of error message typos
versions: Python 3.7

Python tracker <>
Python-bugs-list mailing list

Reply via email to