Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kingkilr
on Jan 23, 2011
|
parent
|
context
|
favorite
| on:
Ruby and Python: pivot points
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)
vithlani
on Jan 24, 2011
[–]
Hot damn, I had no idea bout that module.....
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: