Maven@piefed.blahaj.zone to Ask Lemmy@lemmy.worldEnglish · 5 days agoWhats your hot take on something that doesnt matter at all?message-squaremessage-square562linkfedilinkarrow-up1184arrow-down13file-text
arrow-up1181arrow-down1message-squareWhats your hot take on something that doesnt matter at all?Maven@piefed.blahaj.zone to Ask Lemmy@lemmy.worldEnglish · 5 days agomessage-square562linkfedilinkfile-text
minus-squarethemaninblack@lemmy.worldlinkfedilinkarrow-up1·3 days agoThis is also necessary for lists in python with one member. Or was.
minus-squarebenni@lemmy.worldlinkfedilinkarrow-up2·2 days agoI think you mean tuples, because (1) == 1, but (1, ) == tuple([1]).
minus-squarethemaninblack@lemmy.worldlinkfedilinkarrow-up1·edit-22 days agoOh gosh you’re right. I think I was confusing it with how I previously used the list() constructor, which I no longer use. Thanks for the clarification.
This is also necessary for lists in python with one member. Or was.
I think you mean tuples, because
(1) == 1, but(1, ) == tuple([1]).Oh gosh you’re right. I think I was confusing it with how I previously used the list() constructor, which I no longer use. Thanks for the clarification.