]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43413: Fix handling keyword arguments in subclasses of some buitin classes (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 12 Sep 2021 10:27:50 +0000 (13:27 +0300)
committerGitHub <noreply@github.com>
Sun, 12 Sep 2021 10:27:50 +0000 (13:27 +0300)
commit92bf8691fb78f3484bf2daba836c416efedb1d8d
treef5e605dbb607ec58daa687300a5f59f99dd1aee4
parent5277ffe12d492939544ff9c54a3aaf448b913fb3
bpo-43413: Fix handling keyword arguments in subclasses of some buitin classes (GH-26456)

* Constructors of subclasses of some buitin classes (e.g. tuple, list,
  frozenset) no longer accept arbitrary keyword arguments.
* Subclass of set can now define a __new__() method with additional
  keyword parameters without overriding also __init__().
26 files changed:
Lib/test/seq_tests.py
Lib/test/test_float.py
Lib/test/test_itertools.py
Lib/test/test_list.py
Lib/test/test_set.py
Lib/test/test_tuple.py
Misc/NEWS.d/next/Core and Builtins/2021-05-30-16-37-47.bpo-43413.vYFPPC.rst [new file with mode: 0644]
Modules/_io/clinic/bufferedio.c.h
Modules/_randommodule.c
Modules/_sqlite/clinic/cursor.c.h
Modules/_sqlite/clinic/row.c.h
Modules/arraymodule.c
Modules/clinic/_collectionsmodule.c.h
Modules/clinic/_queuemodule.c.h
Modules/clinic/_ssl.c.h
Modules/clinic/itertoolsmodule.c.h
Modules/clinic/selectmodule.c.h
Modules/itertoolsmodule.c
Objects/clinic/codeobject.c.h
Objects/clinic/enumobject.c.h
Objects/clinic/floatobject.c.h
Objects/clinic/listobject.c.h
Objects/clinic/tupleobject.c.h
Objects/setobject.c
Python/bltinmodule.c
Tools/clinic/clinic.py