D'Lanor wrote:class newcret2(ptResponder): should be class newcret2(ptResponder,):
Can you explain this to someone who thought himself fluent in Python? Even when I try this in Python 2.2 (outside of Plasma), I see no difference at all between defining a class with or without a comma after the superclass. I'm not even sure there are any tuples involved here, the
grammar just talks about an
expression_list, and it seems to me that only free-standing
expression_lists are turned into tuples, while the
class syntax snatches the list before that. At least I can't define a class by passing an actual tuple (
class B((A,)): pass).
I think you might be treating this as a "false positive" of the actual tuple bug where (some versions of?) decompyle wrongly outputted 1-tuples as
(x) instead of
(x,). But perhaps I'm wrong and would love to be enlightened.