Commits

Benjamin Peterson committed aaebdc4

mention that object.__init__ no longer takes arbitrary args and kwargs

  • Participants
  • Parent commits 3a82e50
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Doc/whatsnew/2.6.rst

   before adding elements from the iterable.  This change makes the
   behavior match ``list.__init__()``.
 
+* :meth:`object.__init__` previously accepted arbitrary arguments and keyword
+  arguments.  In Python 2.6, this is no longer allowed and will result in a
+  :exc:`TypeError`.  See issue :issue:`1683368`.
+
 * The :class:`Decimal` constructor now accepts leading and trailing
   whitespace when passed a string.  Previously it would raise an
   :exc:`InvalidOperation` exception.  On the other hand, the