On 10/14/2011 9:05 PM, Chris Angelico wrote:
2011/10/15 惜悯<wa...@qq.com>:retrun True if type(i) is int else FalseThat tests if the object is already an int; the OP asked if a string contains an integer.
The misleading subject line did not. It should have been "How to test if a string contains an integer?" -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list