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

Chris Angelico rosuav at gmail.com
Mon Jan 18 12:35:56 EST 2016


On Tue, Jan 19, 2016 at 4:00 AM, Ian Kelly <ian.g.kelly at 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



More information about the Python-list mailing list