mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Add an errors parameter to open() and TextIOWrapper() to specify error handling.
This commit is contained in:
parent
c6fe37bab9
commit
e7fc50f2d0
7 changed files with 77 additions and 17 deletions
|
@ -915,6 +915,7 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
return NULL;
|
||||
}
|
||||
cr.real = PyFloat_AsDouble(tmp);
|
||||
cr.imag = 0.0; /* Shut up compiler warning */
|
||||
Py_DECREF(tmp);
|
||||
}
|
||||
if (i == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue