Trimming a string

Phil Frost indigo at bitglue.com
Mon Aug 2 12:50:54 EDT 2004


I couldn't agree more. The people on this list are total jerks and could
use a real attitude adjustment. You might want to check out
<http://www.php.net/>; the user commuinity there is one of the smartest
and most helpful.

On Mon, Aug 02, 2004 at 08:54:34AM -0700, Double Dumbass on You wrote:
> Do you feel better about yourself for having posted a smug, shithead-type
> answer, troll??
> 
> As a matter of fact, I was in a near fatal car wreck about 7 years ago.
> Suffered some brain damage.  Now, I can't remember minute details such as
> that which I asked.  I have read the python documentation numerous times.
> Sometimes, I just need a simple answer to a simple question, you simple
> cocksucker.
> 
> GO FUCK YOURSELF, it will be time well spent for you.
> 
> "wes weston" <wweston at att.net> wrote in message
> news:ektPc.165630$OB3.11201 at bgtnsc05-news.ops.worldnet.att.net...
> > Double Dumbass on You wrote:
> > > I have a string that is 7 characters and represents file mode in
> > > UNIX/LINUX from rpm:
> > >
> > > 0100755
> > >
> > > I don't care about the 0100 portion, I am only interested in the
> > > file permissions portion which is 755.  How can I get three
> > > characters from the string starting at the right?  ( -OR- strip 4
> > > characters from the left? )
> >
> >
> > >>> x = "0100755"
> > >>> print x[4:]
> > 755
> >
> > Reading the tutorial is really time well spent.
> >
> > wes



More information about the Python-list mailing list