Issue #18783: Removed existing mentions of Python long type in docstrings,

error messages and comments.
This commit is contained in:
Serhiy Storchaka 2013-08-27 19:40:23 +03:00
parent 4af4d273bd
commit 9594942716
40 changed files with 137 additions and 150 deletions

View file

@ -1512,7 +1512,7 @@ PyDoc_STRVAR(pow_doc,
"pow(x, y[, z]) -> number\n\
\n\
With two arguments, equivalent to x**y. With three arguments,\n\
equivalent to (x**y) % z, but may be more efficient (e.g. for longs).");
equivalent to (x**y) % z, but may be more efficient (e.g. for ints).");

View file

@ -1013,7 +1013,7 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o)
Py_ssize_t arg;
double d;
/* necessary to make sure types aren't coerced (e.g., int and long) */
/* necessary to make sure types aren't coerced (e.g., float and complex) */
/* _and_ to distinguish 0.0 from -0.0 e.g. on IEEE platforms */
if (PyFloat_Check(o)) {
d = PyFloat_AS_DOUBLE(o);

View file

@ -1439,8 +1439,7 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer,
case 'x':
case 'X':
case 'n':
/* no type conversion needed, already an int (or long). do
the formatting */
/* no type conversion needed, already an int. do the formatting */
result = format_long_internal(obj, &format, writer);
break;

View file

@ -146,7 +146,7 @@ w_pstring(const char *s, Py_ssize_t n, WFILE *p)
w_string(s, n, p);
}
/* We assume that Python longs are stored internally in base some power of
/* We assume that Python ints are stored internally in base some power of
2**15; for the sake of portability we'll always read and write them in base
exactly 2**15. */
@ -432,7 +432,7 @@ w_object(PyObject *v, WFILE *p)
p->depth--;
}
/* version currently has no effect for writing longs. */
/* version currently has no effect for writing ints. */
void
PyMarshal_WriteLongToFile(long x, FILE *fp, int version)
{