Y
Hacker News
new
|
ask
|
show
|
jobs
by
rdnetto
3314 days ago
You can do that in Python by converting the list to a tuple before passing it in. The need for a defensive copy is unavoidable as long as you're using mutable data types though.