Author vstinner
Recipients vstinner
Date 2008-08-21.09:54:00
SpamBayes Score 0.00173973
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