Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: When is an int not an int? Who can explain this? Date: Tue, 19 Jan 2016 03:19:59 +1100 Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de zrBIcyPZKY3p9xtmXSyvegQdr5CguBmQB6b72MIsqkSQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.01; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'python': 0.10; 'jan': 0.11; 'subject:not': 0.11; "'int'": 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'header :In-Reply-To:1': 0.24; 'order.': 0.27; 'possibility': 0.27; 'message-id:@mail.gmail.com': 0.27; "i'd": 0.31; 'int': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'false': 0.35; 'received:209.85': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; '2010,': 0.39; 'more': 0.63; 'smith': 0.76; '#1:': 0.84; '#2:': 0.84; 'chrisa': 0.84; 'subject:When': 0.84; 'subject:this': 0.85; 'to:none': 0.91; 'subject:Who': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=psmq6Ww10mGV50ezWvWQFYFDxexH9FO6AKV5yFxCqhI=; b=XoIE0P8GrcL06OLxPjuHC74OZqpnmfpFGLzljy3bk8bcqnGZHo3FNAo2+UVhjYNwAm LT9RLR96pAui1KkIH1eHV1qfh4iz6EuAaXqDQVMmYOh0mAU4tE8OFQ0dre4il3xuw1Eq aVljzqLPTMQuia8AVVBXKOGGPPkSTZyVLNHOtvXCBy7RWTQMwleh32pajyi32cCagsct 1gVQeeFxG+zhB5JY3k7mmKqo7YX4sA0aEXjofeQ5RXopGPgJfB5Hq5BbLOnD5ujp/o2x ihPqi2GD+Qc1hixtzSkuudqa7svA9/Wm9sci7Fo0MaFccb0ac85Hn/GsAekoiEW9Drhd wSrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=psmq6Ww10mGV50ezWvWQFYFDxexH9FO6AKV5yFxCqhI=; b=TdqyVXG1Yv8NpOS7nFrEJashUQ1KGK9RZhFLlo3fsbyHY4HwMzlVqAAufXjjRFMPzg FoQvUPjD5V0HcRvu2pfJIS4bFgN0hK/dlI6KlE+indd9SsUxPC6QQaIZDU33KC2wAgO/ KRdXgbxme7I0J3EFvmQxTOJ8FHIpXnQhSEy8mfOVSI9czUxqbFqYgomJ79cVPK+Wj8Bi BuiWQeqwFjCQcEgcIU9BnAFmo2IBqk2p8CbsLk7X2Kdmz2VjbS7dkPo/I/YEqRU95YRx zEGswxqn3OMVST09vq+aof5M60O3SE/NH4uhASesLVnthgjNsgyXrMkEZ2ufcsmaqeSF RhKg== X-Gm-Message-State: ALoCoQlyIET4Uglm3eRBNiuf4eVGwZsS/7FbA0lt9vGGlGdsnj/EeBG04hH8aiJKZXWMU86lYvEOEtONeeiOZAQSRmOsRekBPA== X-Received: by 10.107.40.76 with SMTP id o73mr20629120ioo.157.1453133999315; Mon, 18 Jan 2016 08:19:59 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101877 On Tue, Jan 19, 2016 at 3:11 AM, Charles T. Smith wrote: > $ python > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) > [GCC 4.4.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> type(0) is int > True > ... > (PDB)type(0) is int > False > (PDB)type(1) is int > False Possibility #1: 'int' has been rebound. Possibility #2: 'type' has been rebound. I'd check them in that order. ChrisA