Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a47c0f

Browse files
committed
Fix spelling mistakes. Bugfix candidates.
1 parent 4fd5a06 commit 2a47c0f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Modules/gcmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ gc_get_debug(PyObject *self, PyObject *args)
615615
}
616616

617617
static char gc_set_thresh__doc__[] =
618-
"set_threshold(threshold0, [threhold1, threshold2]) -> None\n"
618+
"set_threshold(threshold0, [threshold1, threshold2]) -> None\n"
619619
"\n"
620620
"Sets the collection thresholds. Setting threshold0 to zero disables\n"
621621
"collection.\n"

Objects/rangeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ range_compare(rangeobject *r1, rangeobject *r2)
190190
{
191191

192192
if (PyErr_Warn(PyExc_DeprecationWarning,
193-
"xrange object comparision is deprecated; "
193+
"xrange object comparison is deprecated; "
194194
"convert to list instead") < 0)
195195
return -1;
196196

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int Py_OptimizeFlag = 0;
6161
"name '%.400s' is used prior to global declaration"
6262

6363
#define LOCAL_GLOBAL \
64-
"name '%.400s' is a function paramter and declared global"
64+
"name '%.400s' is a function parameter and declared global"
6565

6666
#define LATE_FUTURE \
6767
"from __future__ imports must occur at the beginning of the file"

Python/sysmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ static char setdlopenflags_doc[] =
410410
"setdlopenflags(n) -> None\n\
411411
\n\
412412
Set the flags that will be used for dlopen() calls. Among other\n\
413-
things, this will enable a lazy resolving of symbols when imporing\n\
413+
things, this will enable a lazy resolving of symbols when importing\n\
414414
a module, if called as sys.setdlopenflags(0)\n\
415-
To share symols across extension modules, call as\n\
415+
To share symbols across extension modules, call as\n\
416416
sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)";
417417

418418
static PyObject *
@@ -673,7 +673,7 @@ Static objects:\n\
673673
\n\
674674
maxint -- the largest supported integer (the smallest is -maxint-1)\n\
675675
maxunicode -- the largest supported character\n\
676-
builtin_module_names -- tuple of module names built into this intepreter\n\
676+
builtin_module_names -- tuple of module names built into this interpreter\n\
677677
version -- the version of this interpreter as a string\n\
678678
version_info -- version information as a tuple\n\
679679
hexversion -- version information encoded as a single integer\n\

0 commit comments

Comments
 (0)