[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

Serhiy Storchaka report at bugs.python.org
Tue Apr 6 10:04:26 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Not all "can't" in error messages were replaced by "cannot".

$ find Parser Python Objects Modules -name '*.[ch]' | xargs egrep '".*[Cc]an'\''t.*"' | wc -l
181
$ find Parser Python Objects Modules -name '*.[ch]' | xargs egrep '".*[Cc]annot.*"' | wc -l
247

$ find Lib -name '*.py' | xargs egrep '(["'\'']).*[Cc]an'\''t.*\1' | wc -l
239
$ find Lib -name '*.py' | xargs egrep '(["'\'']).*[Cc]annot.*\1' | wc -l
602

$ find Doc -name '*.rst' | xargs egrep '[Cc]an'\''t' | wc -l
180
$ find Doc -name '*.rst' | xargs egrep '[Cc]annot' | wc -l
482

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43748>
_______________________________________


More information about the Python-bugs-list mailing list