[Twisted-Python] Inheriting DatagramProtocol, which is an old-style class
Go Luhng
goluhng at gmail.com
Fri Feb 7 17:50:04 MST 2020
I am creating a child class
`Child(twisted.internet.protocol.DatagramProtocol)` to implement a
custom UDP multicast protocol.
I need to add an `__init__()` to `Child`, but as part of that I need
to call `super()` which is impossible because `DatagramProtocol` is
old-style.
How should I proceed?
Also, why are there old-style classes in the latest release of Twisted?
More information about the Twisted-Python
mailing list