Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Daniel_Newby
on Feb 13, 2009
|
parent
|
context
|
favorite
| on:
Python: copying a list the right way
"So why not write reversed_string = orig_string.reverse()"
reverse() does an in-place reversal of the original list and does not return the result.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
reverse() does an in-place reversal of the original list and does not return the result.