]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Responsibility for argument checking belongs in set.__init__() rather than set.__new__().
authorRaymond Hettinger <python@rcn.com>
Sat, 26 Mar 2016 11:10:11 +0000 (04:10 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 26 Mar 2016 11:10:11 +0000 (04:10 -0700)
commit2c257ab0f85396664536605666af9a6f00c73a4f
tree3e25870681eefcb6dadd53886e58196add3bad2d
parent942302371c1e46fdf486a5be0e036f7232a2fba1
Responsibility for argument checking belongs in set.__init__() rather than set.__new__().

See dict.__new__() and list.__new__() for comparison.  Neither of those examine or touch
args or kwds.  That work is done in the __init__() methods.
Objects/setobject.c