Skip to content

The filtermask submodule isn't valid Python! #11

@RobPearce

Description

@RobPearce

The author of the filtermask module appears to have been writing in a language other than Python.
The class defines two __init__ methods in an attempt to create overloaded constructors like in C++ or Java. This does not work in Python - the second definition merely overwrites the first and the first is thrown away.
Once in the __init__ method, the first thing that happens is the 'registers' member is set to be an empty list of zero length. Then it tries to set the first four elements of this zero-length list, which don't exist because it's zero length!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions