Issue 8436: set.init accepts keyword args (original) (raw)

Issue8436

Created on 2010-04-17 19:37 by abacabadabacaba, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg103427 - (view) Author: Evgeny Kapun (abacabadabacaba) Date: 2010-04-17 19:37
>>> list().__init__(a=0) Traceback (most recent call last): File "", line 1, in TypeError: 'a' is an invalid keyword argument for this function >>> set().__init__(a=0)
msg103448 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2010-04-17 23:16
Thx, will look at it when I get a chance.
msg103462 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2010-04-18 05:42
If you submit a patch, be sure to include a test that covers both set.__init__() and frozenset.__init__(). Model the code are the equivalent checks in Modules/itertoolsmodule.c
msg103548 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2010-04-18 23:05
r80202, r80203, r80204, and r80205
History
Date User Action Args
2022-04-11 14:57:00 admin set github: 52683
2010-04-18 23:05:20 rhettinger set status: open -> closedresolution: fixedmessages: +
2010-04-18 05:45:52 rhettinger set keywords: + easy
2010-04-18 05:42:26 rhettinger set priority: lowstage: needs patchmessages: + versions: + Python 2.6, Python 2.7, Python 3.2
2010-04-17 23:16:10 rhettinger set messages: +
2010-04-17 19:40:00 benjamin.peterson set assignee: rhettingernosy: + rhettinger
2010-04-17 19:37:20 abacabadabacaba create