Trimming a string

Peter Hansen peter at engcorp.com
Fri Aug 6 08:33:25 EDT 2004


David Fraser wrote:

> Double Dumbass on You wrote:
>> "wes weston" wrote:
 >>> >>> x = "0100755"
 >>> >>> print x[4:]
 >>> 755
>>>    Reading the tutorial is really time well spent.
 >>
 >> Do you feel better about yourself for having posted a smug,
 >> shithead-type answer, troll??
> 
> Actually your answer was a bit ruder than his

And in fact, Wes' response was not in the least bit rude, but
rather quite helpful in two important ways: giving the actual
answer, and giving advice on how to find answers to similar
questions in the future.

Braindamagedness notwithstanding, Double Dumbass (appropriately
named?) needs to learn to cope with his situation in life and
reading the tutorial repeatedly, even, if necessary each time
before posting a question, would be a better approach than
insulting those who try to help.

-Peter



More information about the Python-list mailing list