Hacker News new | past | comments | ask | show | jobs | submit login

Or, if you have a list that might be of mixed types that happen to have capitalize methods:

    >>> import operator
    >>> map(operator.methodcaller("capitalize"), your_list)



Hot damn, I had no idea bout that module.....




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

Search: