summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-16 12:04:32 +0000
committerThomas Wouters <thomas@python.org>2000-07-16 12:04:32 +0000
commit764fa07469563f448c0ab6a20dad3943e4231ce5 (patch)
tree44b099de81d99a0e892ef5afbf5f49abf2dd98aa /Python
parent68d8117162e83550ba7f5c949f6fbea19d1d3cc0 (diff)
downloadcpython-764fa07469563f448c0ab6a20dad3943e4231ce5.tar.gz
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
-rw-r--r--Python/codecs.c4
-rw-r--r--Python/dynload_aix.c2
-rw-r--r--Python/dynload_next.c2
-rw-r--r--Python/exceptions.c2
-rw-r--r--Python/getargs.c2
-rw-r--r--Python/pythonrun.c2
-rw-r--r--Python/strtod.c2
-rw-r--r--Python/thread_lwp.h2
-rw-r--r--Python/thread_os2.h2
10 files changed, 11 insertions, 11 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index bcdd98f318..3225685c89 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2769,7 +2769,7 @@ build_class(methods, bases, name)
/* Call the base's *type*, if it is callable.
This code is a hook for Donald Beaudry's
and Jim Fulton's type extensions. In
- unexended Python it will never be triggered
+ unextended Python it will never be triggered
since its types are not callable.
Ditto: call the bases's *class*, if it has
one. This makes the same thing possible
diff --git a/Python/codecs.c b/Python/codecs.c
index 27331ab66b..20791f50fc 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -146,7 +146,7 @@ PyObject *_PyCodec_Lookup(const char *encoding)
}
/* Convert the encoding to a normalized Python string: all
- characters are converted to lower case, spaces and hypens are
+ characters are converted to lower case, spaces and hyphens are
replaced with underscores. */
v = normalizestring(encoding);
if (v == NULL)
@@ -427,7 +427,7 @@ void _PyCodecRegistry_Init()
_PyCodec_SearchCache = PyDict_New();
if (_PyCodec_SearchPath == NULL ||
_PyCodec_SearchCache == NULL)
- Py_FatalError("can't intialize codec registry");
+ Py_FatalError("can't initialize codec registry");
}
void _PyCodecRegistry_Fini()
diff --git a/Python/dynload_aix.c b/Python/dynload_aix.c
index 9c6b60ab88..04e6293504 100644
--- a/Python/dynload_aix.c
+++ b/Python/dynload_aix.c
@@ -189,7 +189,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
/*
-- Invoke load() with L_NOAUTODEFER leaving the imported symbols
-- of the shared module unresolved. Thus we have to resolve them
- -- explicitely with loadbind. The new module is loaded, then we
+ -- explicitly with loadbind. The new module is loaded, then we
-- resolve its symbols using the list of already loaded modules
-- (only those that belong to the python executable). Get these
-- with loadquery(L_GETINFO).
diff --git a/Python/dynload_next.c b/Python/dynload_next.c
index 2d02cc6623..a352edcf18 100644
--- a/Python/dynload_next.c
+++ b/Python/dynload_next.c
@@ -162,7 +162,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
return NULL;
}
if (!NSIsSymbolNameDefined(funcname)) {
- /* UnlinkModule() isn't implimented in current versions, but calling it does no harm */
+ /* UnlinkModule() isn't implemented in current versions, but calling it does no harm */
NSUnLinkModule(newModule, FALSE);
PyErr_Format(PyExc_ImportError,
"Loaded module does not contain symbol %.200s",
diff --git a/Python/exceptions.c b/Python/exceptions.c
index 05e318e453..b63daee18f 100644
--- a/Python/exceptions.c
+++ b/Python/exceptions.c
@@ -183,7 +183,7 @@ static PyObject* get_self(PyObject* args)
{
PyObject* self = PyTuple_GetItem(args, 0);
if (!self) {
- /* Watch out for being called to early in the bootstapping process */
+ /* Watch out for being called to early in the bootstrapping process */
if (PyExc_TypeError) {
PyErr_SetString(PyExc_TypeError,
"unbound method must be called with class instance 1st argument");
diff --git a/Python/getargs.c b/Python/getargs.c
index 11754ef26f..3ed65a3a2b 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -13,7 +13,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
/* XXX There are several unchecked sprintf or strcat calls in this file.
XXX The only way these can become a danger is if some C code in the
XXX Python source (or in an extension) uses ridiculously long names
- XXX or riduculously deep nesting in format strings. */
+ XXX or ridiculously deep nesting in format strings. */
#include "Python.h"
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index afb9589a51..cc942a3778 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -75,7 +75,7 @@ int Py_UnicodeFlag = 0; /* Needed by compile.c */
static int initialized = 0;
-/* API to access the initialized flag -- useful for eroteric use */
+/* API to access the initialized flag -- useful for esoteric use */
int
Py_IsInitialized()
diff --git a/Python/strtod.c b/Python/strtod.c
index a0991d5c68..0673fcade2 100644
--- a/Python/strtod.c
+++ b/Python/strtod.c
@@ -69,7 +69,7 @@ double strtod(str, ptr)
register char *sp, *dp;
register int c;
char *buforg, *buflim;
- char buffer[64]; /* 45-digit significand + */
+ char buffer[64]; /* 45-digit significant + */
/* 13-digit exponent */
sp = str;
while (*sp == ' ') sp++;
diff --git a/Python/thread_lwp.h b/Python/thread_lwp.h
index fcfabf5783..5d73242880 100644
--- a/Python/thread_lwp.h
+++ b/Python/thread_lwp.h
@@ -13,7 +13,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#include <lwp/stackdep.h>
#define STACKSIZE 1000 /* stacksize for a thread */
-#define NSTACKS 2 /* # stacks to be put in cache initialy */
+#define NSTACKS 2 /* # stacks to be put in cache initially */
struct lock {
int lock_locked;
diff --git a/Python/thread_os2.h b/Python/thread_os2.h
index 2371aaec25..0709e06996 100644
--- a/Python/thread_os2.h
+++ b/Python/thread_os2.h
@@ -122,7 +122,7 @@ PyThread_type_lock PyThread_allocate_lock(void)
PyThread_init_thread();
DosCreateMutexSem(NULL, /* Sem name */
- &aLock, /* the semaphone */
+ &aLock, /* the semaphore */
0, /* shared ? */
0); /* initial state */