Maven@piefed.blahaj.zone to Ask Lemmy@lemmy.worldEnglish · 8 days agoWhats your hot take on something that doesnt matter at all?message-squaremessage-square333linkfedilinkarrow-up116arrow-down10file-text
arrow-up116arrow-down1message-squareWhats your hot take on something that doesnt matter at all?Maven@piefed.blahaj.zone to Ask Lemmy@lemmy.worldEnglish · 8 days agomessage-square333linkfedilinkfile-text
minus-squarethemaninblack@lemmy.worldlinkfedilinkarrow-up1·6 days agoThis is also necessary for lists in python with one member. Or was.
minus-squarebenni@lemmy.worldlinkfedilinkarrow-up2·5 days agoI think you mean tuples, because (1) == 1, but (1, ) == tuple([1]).
minus-squarethemaninblack@lemmy.worldlinkfedilinkarrow-up1·edit-25 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.