New submission from STINNER Victor <[EMAIL PROTECTED]>: 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. ---------- components: Library (Lib) messages: 71619 nosy: haypo severity: normal status: open title: Unable to inherit bytes: bytes.__init__() doesn't accept arguments type: behavior versions: Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3630> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com