mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
Fix miscellaneous typos (#4275)
This commit is contained in:
parent
cf296537f1
commit
a5293b4ff2
50 changed files with 82 additions and 82 deletions
|
@ -391,7 +391,7 @@ call_show_warning(PyObject *category, PyObject *text, PyObject *message,
|
|||
|
||||
/* If the source parameter is set, try to get the Python implementation.
|
||||
The Python implementation is able to log the traceback where the source
|
||||
was allocated, whereas the C implementation doesnt. */
|
||||
was allocated, whereas the C implementation doesn't. */
|
||||
show_fn = get_warnings_attr("_showwarnmsg", source != NULL);
|
||||
if (show_fn == NULL) {
|
||||
if (PyErr_Occurred())
|
||||
|
|
|
@ -4287,7 +4287,7 @@ static void fstring_shift_node_locations(node *n, int lineno, int col_offset)
|
|||
|
||||
`parent` is the enclosing node.
|
||||
`n` is the node which locations are going to be fixed relative to parent.
|
||||
`expr_str` is the child node's string representation, incuding braces.
|
||||
`expr_str` is the child node's string representation, including braces.
|
||||
*/
|
||||
static void
|
||||
fstring_fix_node_location(const node *parent, node *n, char *expr_str)
|
||||
|
|
|
@ -817,7 +817,7 @@ pymonotonic(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
|
|||
}
|
||||
|
||||
/* Check that timebase.numer and timebase.denom can be casted to
|
||||
_PyTime_t. In pratice, timebase uses uint32_t, so casting cannot
|
||||
_PyTime_t. In practice, timebase uses uint32_t, so casting cannot
|
||||
overflow. At the end, only make sure that the type is uint32_t
|
||||
(_PyTime_t is 64-bit long). */
|
||||
assert(sizeof(timebase.numer) < sizeof(_PyTime_t));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue