Re: Help in string.digits functions

2006-07-25 Thread Anoop
Hi All Thankyou verymuch for ur inputs. Hope u might have come across the string deprecation thought of in Python 3.0 as a result of which we need to use all of these as some objects For example : string.lower(str) needs to be some thing like str.lower(). Can u tell me whether such a change in

Re: Help in string.digits functions

2006-07-25 Thread Simon Forman
John McMonagle wrote: > On Mon, 2006-07-24 at 22:19 -0700, Anoop wrote: > > Hi All > > > > I am getting two different outputs when i do an operation using > > string.digits and test.isdigit(). Is there any difference between the > > two. I have given the sample program and the output > > > > Thanks

Re: Help in string.digits functions

2006-07-24 Thread John Machin
Anoop wrote: > Hi All > > I am getting two different outputs when i do an operation using > string.digits and test.isdigit(). Is there any difference between the > two. Your first sentence appears to answer that ..but yes, there's quite a difference. Have you read the manual? > I have given the

Re: Help in string.digits functions

2006-07-24 Thread John McMonagle
On Mon, 2006-07-24 at 22:19 -0700, Anoop wrote: > Hi All > > I am getting two different outputs when i do an operation using > string.digits and test.isdigit(). Is there any difference between the > two. I have given the sample program and the output > > Thanks for ur inputs > > Anoop > > #1: >

Help in string.digits functions

2006-07-24 Thread Anoop
Hi All I am getting two different outputs when i do an operation using string.digits and test.isdigit(). Is there any difference between the two. I have given the sample program and the output Thanks for ur inputs Anoop #1: ~~ import string test='121206' if test not in string.digits: prin