# define HAVE_FFI_PREP_CIF_VAR_RUNTIME false
# endif
- /* Even on Apple-arm64 the calling convention for variadic functions conincides
+ /* Even on Apple-arm64 the calling convention for variadic functions coincides
* with the standard calling convention in the case that the function called
* only with its fixed arguments. Thus, we do not need a special flag to be
* set on variadic functions. We treat a function as variadic if it is called
* Expects the size, index and offset for the current field in *psize and
* *poffset, stores the total size so far in *psize, the offset for the next
* field in *poffset, the alignment requirements for the current field in
- * *palign, and returns a field desriptor for this field.
+ * *palign, and returns a field descriptor for this field.
*/
/*
* bitfields extension:
PyObject *checker;
int flags; /* calling convention and such */
- /* pep3118 fields, pointers neeed PyMem_Free */
+ /* pep3118 fields, pointers need PyMem_Free */
char *format;
int ndim;
Py_ssize_t *shape;
* call when setting the reducer_override attribute of the Pickler instance
* to a bound method of the same instance. This is important as the Pickler
* instance holds a reference to each object it has pickled (through its
- * memo): thus, these objects wont be garbage-collected as long as the
+ * memo): thus, these objects won't be garbage-collected as long as the
* Pickler itself is not collected. */
Py_CLEAR(self->reducer_override);
return status;
return 0;
if ((len - x) % 2 != 0) {
PickleState *st = _Pickle_GetGlobalState();
- /* Currupt or hostile pickle -- we never write one like this. */
+ /* Corrupt or hostile pickle -- we never write one like this. */
PyErr_SetString(st->UnpicklingError,
"odd number of items for SETITEMS");
return -1;
* 2001-05-14 fl fixes for 1.5.2 compatibility
* 2001-07-01 fl added BIGCHARSET support (from Martin von Loewis)
* 2001-10-18 fl fixed group reset issue (from Matthew Mueller)
- * 2001-10-20 fl added split primitive; reenable unicode for 1.6/2.0/2.1
+ * 2001-10-20 fl added split primitive; re-enable unicode for 1.6/2.0/2.1
* 2001-10-21 fl added sub/subn primitive
* 2001-10-24 fl added finditer primitive (for 2.2 only)
* 2001-12-07 fl fixed memory leak in sub/subn (Guido van Rossum)
PyErr_SetString(PyExc_ValueError, "unsupported error handler");
break;
default:
- PyErr_SetString(PyExc_ValueError, "unknow error code");
+ PyErr_SetString(PyExc_ValueError, "unknown error code");
break;
}
return res;
PyErr_SetString(PyExc_ValueError, "unsupported error handler");
break;
default:
- PyErr_SetString(PyExc_ValueError, "unknow error code");
+ PyErr_SetString(PyExc_ValueError, "unknown error code");
break;
}
return res;
Py_INCREF(self->string);
return self->string;
}
- /* XXX Could chache result if it is non-ASCII. */
+ /* XXX Could cache result if it is non-ASCII. */
return unicodeFromTclObj(self->value);
}
static void
tracemalloc_clear_traces(void)
{
- /* The GIL protects variables againt concurrent access */
+ /* The GIL protects variables against concurrent access */
assert(PyGILState_Check());
TABLES_LOCK();
* could technically be calculated from the timestamp, but given that the
* callers of this function already have the year information accessible from
* the datetime struct, it is taken as an additional parameter to reduce
- * unncessary calculation.
+ * unnecessary calculation.
* */
static _ttinfo *
find_tzrule_ttinfo(_tzrule *rule, int64_t ts, unsigned char fold, int year)
const char *s;
#ifdef XML_UNICODE
char encodingBuf[128];
- /* See comments abount `protoclEncodingName` in parserInit() */
+ /* See comments about `protoclEncodingName` in parserInit() */
if (! parser->m_protocolEncodingName)
s = NULL;
else {
https://www.python.org/sf/1055820
shows how innocent it can be, and also how nasty. Variants of the three
-focussed test cases attached to that bug report are now part of Python's
+focused test cases attached to that bug report are now part of Python's
standard Lib/test/test_gc.py.
Jim Fulton gave the best nutshell summary of the new (in 2.4 and 2.3.5)
}
/* If a pyvenv.cfg configure file is found,
- argv0_path is overriden with its 'home' variable. */
+ argv0_path is overridden with its 'home' variable. */
status = calculate_read_pyenv(calculate);
if (_PyStatus_EXCEPTION(status)) {
return status;
sha1->curlen = 0;
}
- /* pad upto 56 bytes of zeroes */
+ /* pad up to 56 bytes of zeroes */
while (sha1->curlen < 56) {
sha1->buf[sha1->curlen++] = (unsigned char)0;
}
reading, but the data then discarded by the OS because of a
wrong checksum.
- Loop on select() to recheck for socket readyness. */
+ Loop on select() to recheck for socket readiness. */
continue;
}
PyObject *openargs;
/* Continue even if PyTuple_New fails, because openlog(3) is optional.
- * So, we can still do loggin in the unlikely event things are so hosed
+ * So, we can still do logging in the unlikely event things are so hosed
* that we can't do this tuple.
*/
if ((openargs = PyTuple_New(0))) {