This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Python gdb.Function is an old-style class?
- From: Paul Smith <psmith at gnu dot org>
- To: gdb at sourceware dot org
- Date: Thu, 21 Jul 2016 13:22:12 -0400
- Subject: Python gdb.Function is an old-style class?
- Authentication-results: sourceware.org; auth=none
- Reply-to: psmith at gnu dot org
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?