mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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:
parent
d057b896f9
commit
279f44678c
47 changed files with 256 additions and 257 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue