alexcoder04@programming.dev to Programmer Humor@programming.devEnglish · 11 months agopython < shell (for scripts)programming.devimagemessage-square56fedilinkarrow-up1580arrow-down116
arrow-up1564arrow-down1imagepython < shell (for scripts)programming.devalexcoder04@programming.dev to Programmer Humor@programming.devEnglish · 11 months agomessage-square56fedilink
minus-squareDiplomjodler@feddit.decakelinkfedilinkarrow-up2·11 months agoAs long as you do all your lookups with dicts or sets performance is pretty decent for smaller workloads.
minus-squaregrue@lemmy.mllinkfedilinkarrow-up1·11 months agoPython is secretly a functional-paradigm language. If you’re not making liberal use of comprehensions instead of loops (especially loops with LBYL conditions in them), you’re doing it wrong.
As long as you do all your lookups with dicts or sets performance is pretty decent for smaller workloads.
Python is secretly a functional-paradigm language. If you’re not making liberal use of comprehensions instead of loops (especially loops with LBYL conditions in them), you’re doing it wrong.