nostr:npub1xenx2ze286489qzhmddvr3t2aqac07ku653mtfx2dpj35zhvkl5qdej5uq oh, extend is just wrong
>>> x = [1,2,3]
>>> x.extend([1,2,3])
>>> x
[1, 2, 3, 1, 2, 3]
>>>
nostr:npub1xenx2ze286489qzhmddvr3t2aqac07ku653mtfx2dpj35zhvkl5qdej5uq extend and copy are surprising & the cheat sheet doesn't show the non-surprising version.
nostr:npub1xenx2ze286489qzhmddvr3t2aqac07ku653mtfx2dpj35zhvkl5qdej5uq oh, extend is just wrong
>>> x = [1,2,3]
>>> x.extend([1,2,3])
>>> x
[1, 2, 3, 1, 2, 3]
>>>
No replies yet.