From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115835 invoked by alias); 21 Jul 2016 17:22:28 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 115826 invoked by uid 89); 21 Jul 2016 17:22:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-HELO:eggs.gnu.org, Hx-spam-relays-external:208.118.235.92, H*RU:208.118.235.92, super X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 21 Jul 2016 17:22:22 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQHfr-0003cu-Ky for gdb@sourceware.org; Thu, 21 Jul 2016 13:22:18 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQHfr-0003c8-Hd for gdb@sourceware.org; Thu, 21 Jul 2016 13:22:15 -0400 Received: from [64.238.138.90] (port=57936 helo=pdsdesk) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bQHfp-0003FR-Hi for gdb@sourceware.org; Thu, 21 Jul 2016 13:22:13 -0400 Message-ID: <1469121732.5880.128.camel@gnu.org> Subject: Python gdb.Function is an old-style class? From: Paul Smith Reply-To: psmith@gnu.org To: gdb@sourceware.org Date: Thu, 21 Jul 2016 17:22:00 -0000 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00014.txt.bz2 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?