Class Initialization Without __init__ Method
While going through scapy source code (https://github.com/jwiegley/scapy), I came across the fact none of the Ether, IP, TCP, UDP or any other protocol classes contain any __init__
Solution 1:
if the class doesnt contain a own __init__()
it will just take the one from the superclass. a overwritten __init__()
is only requiered, when adding changes. maybe this will help you understand
Post a Comment for "Class Initialization Without __init__ Method"