Message71619
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. |
|
Date |
User |
Action |
Args |
2008-08-21 09:54:33 | vstinner | set | recipients:
+ vstinner |
2008-08-21 09:54:16 | vstinner | set | messageid: <1219312456.78.0.90200161612.issue3630@psf.upfronthosting.co.za> |
2008-08-21 09:54:15 | vstinner | link | issue3630 messages |
2008-08-21 09:54:03 | vstinner | create | |
|