The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: "Neuruss" <luis...@gmail.com>
Date: 21 Dec 2005 03:37:27 -0800
Local: Wed, Dec 21 2005 6:37 am
Subject: Re: How to check if a string "is" an int?
Can't we just check if the string has digits?
For example: >>> x = '15' print int(x)*3 >>> if x.isdigit(): 45 You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||