Python gdb.Function is an old-style class?

Paul Smith psmith@gnu.org
Thu Jul 21 17:22:00 GMT 2016


Hi all; I am writing some Python functions that subclass from
gdb.Function, and I use super() to call the superclass __init__()

It works, but pylint is failing with an error "Use of super on an old
style class".  This is usually shown when a Python2 class does not
inherit, ultimately, from the object.

Is there something magic that needs to happen to make gdb.Function
recognized as a new-style class?



More information about the Gdb mailing list