Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Python Still Surprises
(
kivikakk.ee
)
3 points
by
todsacerdoti
7 months ago
|
hide
|
past
|
favorite
|
1 comment
maleldil
7 months ago
[–]
IME, I've never seen a situation where `x += y` is preferred over `x.extend(y)`, with the bonus that `extend` works in places where `+=` doesn't, like tuples where reassignment isn't possible.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: