Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101883

Re: When is an int not an int? Who can explain this?

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: When is an int not an int? Who can explain this?
Date Tue, 19 Jan 2016 04:35:56 +1100
Lines 14
Message-ID <mailman.94.1453138559.15297.python-list@python.org> (permalink)
References <n7j2r0$hc4$1@dont-email.me> <mailman.89.1453134008.15297.python-list@python.org> <n7j3s1$hc4$2@dont-email.me> <CAPTjJmqGS3ZNP5qxHU+DZerJ5k15dKdCp9HXa7cdDUH1Fzmo+w@mail.gmail.com> <CALwzid=-y=DvHe4YnRV-sw8QGEKTiP-5XmKedryUUGsx-774Xw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de wxLqGPXIQuk++grzXh0Pkg+HovwUl/9YkmYhcgHo34VQ==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'callable.': 0.09; 'called.': 0.09; 'int.': 0.09; 'subclass': 0.09; 'yeah,': 0.09; 'jan': 0.11; 'subject:not': 0.11; '2016': 0.16; 'cc:name:python': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "he'd": 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'repr.': 0.16; 'transcript': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'posted': 0.21; 'am,': 0.23; 'bit': 0.23; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'points': 0.27; 'message- id:@mail.gmail.com': 0.27; 'module.': 0.27; 'bad.': 0.29; 'callable': 0.29; 'probably': 0.31; 'though,': 0.32; 'curious': 0.33; 'int': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'received:209.85.213': 0.37; 'thought': 0.37; 'received:209': 0.38; 'where': 0.40; 'called': 0.40; 'information,': 0.61; '4:00': 0.84; 'chrisa': 0.84; 'subject:When': 0.84; 'subject:this': 0.85; 'to:none': 0.91; 'armed': 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=rXnyV6fLf/I69Eqd6BJvVbSZ08v6tnOno0jbR85umA4=; b=XO96rI/HvHYIpZ7rloIdBzVHfjmHigHdBKnfH2YFog7MNaYe4TqfC49JwlULPQvUUD X8RcDQMC3nycY1eCoftKcigUv4kRXSJkXQZ+LvfRtK03XQDOzWTI8Rl2hlmPmBPRpmWC jkhwvMc5LEBVRAMrvdEcSjLaCrpCmHgLO/K+n8PPdSM0nQ+2g4KIFBvW6nET5r/U/m7+ pP9h/y5ICRBZGodcoRp8KZpqOyUb1KAbiWZ0aTi7jrHJlZfO74veZxt8HhNXL+4Ai5BF lbdSvlRux8vgHSf39ql+Ia9nAd0iFerVYghFiitiRDHouQ4L7vjW0igmKUi514hKBo4b Sl+w==
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=rXnyV6fLf/I69Eqd6BJvVbSZ08v6tnOno0jbR85umA4=; b=Emsx4zYNCpVECcLraSJY0sZ8jlIaHxMzTR9uIdhiQ0wgne0jiZUI1bNzmCxRv4NxjA 1TifqLK1p116a49ctvVk9Y3fMnwrl8HEccxlVx65EHlKsMstdwK/18dnNpklYyi5bzZJ Zd9bzrnweSDLnQmc6v5z2H5Nh/J5IKO/bODl7hGJADuFZihpPByqENAeoVWoEBG9dEvJ thbO6rxRjfcYcECais5VDz3vLVsX3UGR+acOoGQIU2p3Opx5QmDGrLNMMuUq+JPd7ERV 7pMyLh/FNo8tj9JEgBU7dneQwwzUo7WYlccWHrc8BquBlEpF1iVCDBeou8iQTuPby6JS MiqQ==
X-Gm-Message-State AG10YOT/8H0oTCIYMf9uKSOoB7AB5dceDMKIhGPuzISZoSbXwCPrLxgDgBUVteTlaFdluB4egpOXrmyRO+AqXQ==
X-Received by 10.50.28.19 with SMTP id x19mr11970960igg.92.1453138556636; Mon, 18 Jan 2016 09:35:56 -0800 (PST)
In-Reply-To <CALwzid=-y=DvHe4YnRV-sw8QGEKTiP-5XmKedryUUGsx-774Xw@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:101883

Show key headers only | View raw


On Tue, Jan 19, 2016 at 4:00 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
>> Armed with that information, you should be able to track down what's
>> going on. It's curious, though, that you have a callable subclass of
>> module bound to the name int. Very curious indeed.
>
> What makes you think that it's a callable subclass? I don't see any
> place in the posted transcript where int has been called.

Oops, my bad. I thought he'd called int(5) in his original demo. So,
yeah, it's just a module. (Or, as Random832 points out, it's something
with that repr. But probably a module.) Strike that bit about it being
callable.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

When is an int not an int?  Who can explain this? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-01-18 16:11 +0000
  Re: When is an int not an int? Who can explain this? Chris Angelico <rosuav@gmail.com> - 2016-01-19 03:19 +1100
    Re: When is an int not an int? Who can explain this? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2016-01-18 16:28 +0000
      Re: When is an int not an int? Who can explain this? Chris Angelico <rosuav@gmail.com> - 2016-01-19 03:51 +1100
      Re: When is an int not an int? Who can explain this? Ian Kelly <ian.g.kelly@gmail.com> - 2016-01-18 10:00 -0700
      Re: When is an int not an int? Who can explain this? Random832 <random832@fastmail.com> - 2016-01-18 12:02 -0500
      Re: When is an int not an int? Who can explain this? Chris Angelico <rosuav@gmail.com> - 2016-01-19 04:35 +1100

csiph-web