Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If the developer is using str.lstrip or str.rstrip, they're doing it wrong (because they're using the wrong method).

    > "foobar".lstrip("wooowweeezoweeef")
    bar


Yes, that's what both comments you replied to have said.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: