Jython newbie question

akhar akhar at videotron.ca
Thu Jul 25 23:10:26 EDT 2002


Try using jython 2.1 I have it and string works fine on it
"Christopher Myers" <chris.myers at ingenta.com> wrote in message
news:3D40409F.8BA9DDC8 at ingenta.com...
> Aha -- I wasn't thinking about using Java string methods (Duh!)
> Also, I didn't install Jython on my machine -- the interpreter comes
> embedded in Maxq, so I don't really have the Jython interpreter to test
> with.
>
> So, how about using Python's 're' module if string ops aren't
> appropriate?  Some of the string ops I need to do may require using
> re's.  Any comments on that?
>
> Thanks for the help.
>
> -Chris
>
> Martin Franklin wrote:
> >
> > On Thursday 25 Jul 2002 3:12 pm, Christopher Myers wrote:
> > > I just downloaded Maxq (http://www.bitmechanic.com/projects/maxq/)
> > >
> > > (etc . . .)
> >
> > I forgot to add that as of python 2.0 (and Jython 2.0) you don't need
the
> > string module for anything apart from obscure (IMHO) methods as string
> > objects have methods:
> >
> > >>> "aaaaa".upper()
> > 'AAAAA'
> > >>> _.lower()
> > 'aaaaa'
> > >>> ",".join('abcdefg')
> > 'a,b,c,d,e,f,g'
> >
> > etc.....
> >
> > Martin
>
> --
> Christopher Myers, Graduate Software Developer
> Ingenta, Inc.
> 12 Bassett St.
> Providence, RI  02903
> ph:  401.331.2014 x 102
> em:  chris.myers at ingenta.com
> aim: chrismyers001





More information about the Python-list mailing list