In article 
<[EMAIL PROTECTED]>,
 MooMaster <[EMAIL PROTECTED]> wrote:

> So it makes sense that something like 5.6 would return false. But what
> if we want to make sure that our string is a valid number, ie decimals
> included?

Just call int(x) or float(x) inside a try block and see if if it raises an 
exception.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to