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

I just read, that syntax is sugar for the list.extend() method so it's still making copies of the list - I wouldn't use it for a list containing complex objects; but that is very idiomatic for simple use cases (like this one?).


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

Search: