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