Double leading underscore (__write) causes name-mangling in python, so
that derived class can't (directly) access properties of base class (and
vice versa, as was the problem here)
Missing call to super().__init__ in derived class, causing undefined
properties because the base class' constructor was never executed
Some encoding issues (str vs. int vs. bytes). Probably just a python3
thing tough.
Main issues where:
__write
) causes name-mangling in python, so that derived class can't (directly) access properties of base class (and vice versa, as was the problem here)super().__init__
in derived class, causing undefined properties because the base class' constructor was never executedstr
vs.int
vs.bytes
). Probably just a python3 thing tough.