This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: set.__init__ accepts keyword args
Type: behavior Stage: needs patch
Components: Interpreter Core Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: abacabadabacaba, rhettinger
Priority: low Keywords: easy

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 "<stdin>", line 1, in <module>
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:00adminsetgithub: 52683
2010-04-18 23:05:20rhettingersetstatus: open -> closed
resolution: fixed
messages: + msg103548
2010-04-18 05:45:52rhettingersetkeywords: + easy
2010-04-18 05:42:26rhettingersetpriority: low

stage: needs patch
messages: + msg103462
versions: + Python 2.6, Python 2.7, Python 3.2
2010-04-17 23:16:10rhettingersetmessages: + msg103448
2010-04-17 19:40:00benjamin.petersonsetassignee: rhettinger

nosy: + rhettinger
2010-04-17 19:37:20abacabadabacabacreate