It's also potentially lossy if you incremented and decremented until integer precision is lost. My vote is for an int type check. No casting. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120131/72768633/attachment.html>