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.

Author vstinner
Recipients vstinner
Date 2008-08-21.09:54:00
SpamBayes Score 0.0017397284
Marked as misclassified No
Message-id <1219312456.78.0.90200161612.issue3630@psf.upfronthosting.co.za>
In-reply-to
Content
Example:

   class MyBytes(bytes):
      def __init__(self, *args, **kw):
         bytes.__init__(self, *args, **kw)
   a = bytes(b"hello")   # ok
   b = MyBytes(b"hello") # error

=> DeprecationWarning: object.__init__() takes no parameters

The example works fine in Python 2.6 but fails in Python 3.0.
History
Date User Action Args
2008-08-21 09:54:33vstinnersetrecipients: + vstinner
2008-08-21 09:54:16vstinnersetmessageid: <1219312456.78.0.90200161612.issue3630@psf.upfronthosting.co.za>
2008-08-21 09:54:15vstinnerlinkissue3630 messages
2008-08-21 09:54:03vstinnercreate