How to check if a string "is" an int?

Steven D'Aprano steve at REMOVETHIScyber.com.au
Wed Dec 21 08:04:03 EST 2005


On Wed, 21 Dec 2005 07:36:15 -0500, Kent Johnson wrote:

> Maybe so, but '15'.isdigit() == True:

Well I'll be a monkey's uncle.

In that case, the name is misleadingly wrong. I suppose it is not likely
that it could be changed before Python 3?

-- 
Steven




More information about the Python-list mailing list