[issue9117] class syntax not fully documented in reference manual
New submission from Mark Dickinson
Mark Dickinson
Alexander Belopolsky
I believe that *args and **kwargs are now also syntactically accepted in a class definition.
Indeed:
class a: pass class b: pass bases = (a, b) class c(*bases): pass kwds = {'metaclass':type} class c(*bases, **kwds): pass
works!
----------
nosy: +belopolsky
_______________________________________
Python tracker
Mark Dickinson
Alexander Belopolsky
Mark Dickinson
Mark Dickinson
Mark Dickinson
Changes by Mark Dickinson
Georg Brandl
participants (3)
-
Alexander Belopolsky
-
Georg Brandl
-
Mark Dickinson