Bugs item #1684943, was opened at 2007-03-21 07:50 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1684943&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Parser/Compiler Group: Python 2.4 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jørgen Frøjk Kjærsgaard (jfroejk) Assigned to: Nobody/Anonymous (nobody) Summary: Keyword arguments to __init__() of a subclass of set Initial Comment: Passing a keyword argument to a subclass of the built-in class "set" causes a TypeError in Python 2.4.2 and newer but not in 2.4.0. Example: class Test(set): def __init__(self, a=0): self.add(a) t = Test(a=0) In Python 2.4.0 it works as expected whereas in 2.4.2 and 2.4.4, it yields: Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: set() does not take keyword arguments I don't pass a keyword argument to set.__init__() but to its subclass! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1684943&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com