Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: UNSURE 0.220 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.58; '*S*': 0.02; 'subject:Python': 0.06; 'thanks.': 0.20; '(the': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'guess': 0.33; 'test': 0.35; 'received:google.com': 0.35; 'thanks': 0.36; 'starting': 0.37; 'skip:o 20': 0.38; 'message-id:@gmail.com': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'name': 0.63; 'more': 0.64; 'respect': 0.70; 'ending': 0.78; 'checks.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=BxB+oJZVfnFQgqlXWlFSQLoSheQnpxOKlUXnIKGW81k=; b=GX3LsN4vvL4Ux0tA2ufY1Smswnne0Yubrrm6ojGmGgb1890MHMhESdpbW+e2Fa8oRQ dli9grJV/qhYeb9FiJvjmX8v2Op1lumlmcqOcSJuz7LCdyTgotVpHjg9EIzuQVsUdfes WUcPDElQPawyAfb+fQhryqx7EJ693Wn7guuge5sRUhQEnwRFZGycc3RAFo6G+eW6YpWy KBLkkbgYvuNCHJm8K9QGM9QHfm1cEI8w/QTVIl8RyD8bMKF5Tzt6A/Y431hUBjva7Een 8FBf+5Mo+Res0HTIr12725IrCtpuS3XJioC0k1iWxii285ahtoeT6NEBl1eQg+uzpeBO fIGg== X-Received: by 10.180.95.133 with SMTP id dk5mr4486597wib.33.1376240314407; Sun, 11 Aug 2013 09:58:34 -0700 (PDT) Date: Sun, 11 Aug 2013 18:58:25 +0200 From: Xavi User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python Basic Doubt References: <20130810114040.6ac78fe8@bigbox.christie.dr> <52069539$0$30000$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <52069539$0$30000$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 11 Aug 2013 21:08:58 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376248139 news.xs4all.nl 15897 [2001:888:2000:d::a6]:54854 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52394 Thanks to all for your answers, I guess it is more flexible with isinstance (the duck test :) I'm going to change the type checks. Respect to the "Names starting and ending with double-underscore". I don't know how to get the name of a classe without them. obj.__class__.__name__ Thanks. -- Xavi