Skip to content

Commit 4d4b1e6

Browse files
benjaminpsobolevn
andauthored
[3.11] Fix typos in bltinmodule.c. (GH-97789)
(cherry picked from commit 873a2f2) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent 096e396 commit 4d4b1e6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Python/bltinmodule.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ importlib.import_module() to programmatically import a module.
260260
261261
The globals argument is only used to determine the context;
262262
they are not modified. The locals argument is unused. The fromlist
263-
should be a list of names to emulate ``from name import ...'', or an
264-
empty list to emulate ``import name''.
263+
should be a list of names to emulate ``from name import ...``, or an
264+
empty list to emulate ``import name``.
265265
When importing a module from a package, note that __import__('A.B', ...)
266266
returns package A when fromlist is empty, but its submodule B when
267267
fromlist is not empty. The level argument is used to determine whether to
@@ -272,7 +272,7 @@ is the number of parent directories to search relative to the current module.
272272
static PyObject *
273273
builtin___import___impl(PyObject *module, PyObject *name, PyObject *globals,
274274
PyObject *locals, PyObject *fromlist, int level)
275-
/*[clinic end generated code: output=4febeda88a0cd245 input=35e9a6460412430f]*/
275+
/*[clinic end generated code: output=4febeda88a0cd245 input=73f4b960ea5b9dd6]*/
276276
{
277277
return PyImport_ImportModuleLevelObject(name, globals, locals,
278278
fromlist, level);
@@ -1509,13 +1509,13 @@ setattr as builtin_setattr
15091509
15101510
Sets the named attribute on the given object to the specified value.
15111511
1512-
setattr(x, 'y', v) is equivalent to ``x.y = v''
1512+
setattr(x, 'y', v) is equivalent to ``x.y = v``
15131513
[clinic start generated code]*/
15141514

15151515
static PyObject *
15161516
builtin_setattr_impl(PyObject *module, PyObject *obj, PyObject *name,
15171517
PyObject *value)
1518-
/*[clinic end generated code: output=dc2ce1d1add9acb4 input=bd2b7ca6875a1899]*/
1518+
/*[clinic end generated code: output=dc2ce1d1add9acb4 input=5e26417f2e8598d4]*/
15191519
{
15201520
if (PyObject_SetAttr(obj, name, value) != 0)
15211521
return NULL;
@@ -1532,12 +1532,12 @@ delattr as builtin_delattr
15321532
15331533
Deletes the named attribute from the given object.
15341534
1535-
delattr(x, 'y') is equivalent to ``del x.y''
1535+
delattr(x, 'y') is equivalent to ``del x.y``
15361536
[clinic start generated code]*/
15371537

15381538
static PyObject *
15391539
builtin_delattr_impl(PyObject *module, PyObject *obj, PyObject *name)
1540-
/*[clinic end generated code: output=85134bc58dff79fa input=db16685d6b4b9410]*/
1540+
/*[clinic end generated code: output=85134bc58dff79fa input=164865623abe7216]*/
15411541
{
15421542
if (PyObject_SetAttr(obj, name, (PyObject *)NULL) != 0)
15431543
return NULL;

Python/clinic/bltinmodule.c.h

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)