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 20:17:03 +03:00
commit 46e1ce214b
40 changed files with 140 additions and 150 deletions

View file

@ -1529,7 +1529,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

@ -1054,7 +1054,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

@ -1442,8 +1442,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

@ -148,7 +148,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. */
@ -505,7 +505,7 @@ w_complex_object(PyObject *v, char flag, WFILE *p)
}
}
/* 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)
{