]> granicus.if.org Git - python/commit
[3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 14 Sep 2019 10:31:50 +0000 (13:31 +0300)
committerGitHub <noreply@github.com>
Sat, 14 Sep 2019 10:31:50 +0000 (13:31 +0300)
commitd322abbb83eb751045246a70f39d040d13a6108b
tree40ecc91950b369af1aaaebdd677c071aeae72d53
parent66da347ef0034ad9bddc7fad112025c886249f0d
[3.8] bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) (GH-16141)

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.
(cherry picked from commit 279f44678c8b84a183f9eeb85e0b086228154497)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
45 files changed:
Lib/test/clinic.test
Lib/test/test_inspect.py
Misc/NEWS.d/next/Library/2019-06-09-22-25-03.bpo-37206.2WBg4q.rst [new file with mode: 0644]
Modules/_codecsmodule.c
Modules/_cursesmodule.c
Modules/_elementtree.c
Modules/_hashopenssl.c
Modules/_io/_iomodule.c
Modules/_io/clinic/fileio.c.h
Modules/_io/fileio.c
Modules/_io/textio.c
Modules/_pickle.c
Modules/_ssl.c
Modules/_tkinter.c
Modules/cjkcodecs/multibytecodec.c
Modules/clinic/_asynciomodule.c.h
Modules/clinic/_codecsmodule.c.h
Modules/clinic/_elementtree.c.h
Modules/clinic/_pickle.c.h
Modules/clinic/_ssl.c.h
Modules/clinic/_tkinter.c.h
Modules/clinic/binascii.c.h
Modules/clinic/cmathmodule.c.h
Modules/clinic/posixmodule.c.h
Modules/clinic/pyexpat.c.h
Modules/clinic/unicodedata.c.h
Modules/cmathmodule.c
Modules/posixmodule.c
Modules/pyexpat.c
Objects/bytesobject.c
Objects/clinic/bytearrayobject.c.h
Objects/clinic/bytesobject.c.h
Objects/clinic/floatobject.c.h
Objects/clinic/memoryobject.c.h
Objects/clinic/unicodeobject.c.h
Objects/floatobject.c
Objects/structseq.c
Objects/unicodeobject.c
Python/bltinmodule.c
Python/clinic/bltinmodule.c.h
Python/clinic/context.c.h
Python/clinic/import.c.h
Python/clinic/sysmodule.c.h
Python/sysmodule.c
Tools/clinic/clinic.py