bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933)

In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values
(like in the optional third parameter of getattr). "None" should be used if None is accepted
as argument and passing None has the same effect as not passing the argument at all.
This commit is contained in:
Serhiy Storchaka 2019-09-14 12:24:05 +03:00 committed by GitHub
parent d057b896f9
commit 279f44678c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 256 additions and 257 deletions

View file

@ -1503,8 +1503,8 @@ static PyTypeObject Xmlparsetype = {
/*[clinic input]
pyexpat.ParserCreate
encoding: str(accept={str, NoneType}) = NULL
namespace_separator: str(accept={str, NoneType}) = NULL
encoding: str(accept={str, NoneType}) = None
namespace_separator: str(accept={str, NoneType}) = None
intern: object = NULL
Return a new XML parser object.
@ -1513,7 +1513,7 @@ Return a new XML parser object.
static PyObject *
pyexpat_ParserCreate_impl(PyObject *module, const char *encoding,
const char *namespace_separator, PyObject *intern)
/*[clinic end generated code: output=295c0cf01ab1146c input=23d29704acad385d]*/
/*[clinic end generated code: output=295c0cf01ab1146c input=e8da8e8d7122cb5d]*/
{
PyObject *result;
int intern_decref = 0;