On Tue, Apr 2, 2013 at 9:33 AM, Mark Shannon <m...@hotpy.org> wrote: > > Hence my original question: what *should* the semantics be? > > I like Nick's answer to that: int *should* always return something of exact type int. Otherwise you're always left wondering whether you have to do "int(int(x))", or perhaps even "int(int(int(x)))", to be absolutely sure of getting an int.
The question is whether / how to fix the current behaviour, given that it doesn't conform to those ideal semantics. Mark
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com