Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101882
| From | Random832 <random832@fastmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: When is an int not an int? Who can explain this? |
| Date | 2016-01-18 12:02 -0500 |
| Message-ID | <mailman.93.1453136552.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> |
On Mon, Jan 18, 2016, at 11:51, Chris Angelico 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. He hasn't tried calling it. And there's no reason to assume it is a subclass. The results he's shown imply that the object bound to the name int is an instance of a type named module* (which is almost certainly, but not definitely, the usual module type itself, and no more likely to be a subclass of it than of anything else.) *Strictly speaking, a type whose repr is "<class 'module'>"
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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