Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 873a2f2

Browse filesBrowse files
authored
Fix typos in bltinmodule.c. (GH-97766)
1 parent e990c6a commit 873a2f2
Copy full SHA for 873a2f2

File tree

Expand file treeCollapse file tree

2 files changed

+12
-12
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+12
-12
lines changed

‎Python/bltinmodule.c

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

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

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

‎Python/clinic/bltinmodule.c.h

Copy file name to clipboardExpand all lines: Python/clinic/bltinmodule.c.h
+5-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.