mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #27171: Fix typos in documentation, comments, and test function names
This commit is contained in:
parent
1b207c55a4
commit
e26da7c03a
30 changed files with 51 additions and 51 deletions
|
|
@ -876,7 +876,7 @@ oserror_use_init(PyTypeObject *type)
|
|||
solution, given __new__ takes a variable number of arguments,
|
||||
is to defer arg parsing and initialization to __init__.
|
||||
|
||||
But when __new__ is overriden as well, it should call our __new__
|
||||
But when __new__ is overridden as well, it should call our __new__
|
||||
with the right arguments.
|
||||
|
||||
(see http://bugs.python.org/issue12555#msg148829 )
|
||||
|
|
|
|||
|
|
@ -9323,7 +9323,7 @@ tailmatch(PyObject *self,
|
|||
PyUnicode_GET_LENGTH(substring) *
|
||||
PyUnicode_KIND(substring));
|
||||
}
|
||||
/* otherwise we have to compare each character by first accesing it */
|
||||
/* otherwise we have to compare each character by first accessing it */
|
||||
else {
|
||||
/* We do not need to compare 0 and len(substring)-1 because
|
||||
the if statement above ensured already that they are equal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue