Résultats de recherche: "#pythonmorsels"

12 résultats
SimpliPy
SimpliPy@SimpliPy·
Woah-wee! 🤯 Python's strings can check for prefixes & suffixes like a boss! No more slicing business! Just use `startswith` and `endswith`. Check it out here: [link] #PythonMorsels 🚀☁️
English
0
0
0
1
arvin
arvin@vindaRd·
Learned a new #Python thing again today, specifically about how `yield` works --> turns out there's also a `yield from` that's pretty handy when yielding from an iterable #PythonMorsels #deep_flatten
arvin tweet mediaarvin tweet media
English
0
0
0
0
arvin
arvin@vindaRd·
@treyhunner @Wikipedia Another win for deques (in Python at least) that I was wondering about the other day! Inserting into lists is expensive since the address of every other element must be amended (as I suspected). Apparently it's not the same with deques #PythonMorsels #deep_flatten
arvin tweet mediaarvin tweet media
English
0
0
0
0
arvin
arvin@vindaRd·
Had to do quite a bit of error checking on this one to get it to pass the included tests satisfactorily 😅 #PythonMorsels (I could've avoided ALL error checks by setting default value of `start` to 0, but then this would exclude edge cases not in tests) gist.github.com/vindard/80f4c2…
English
0
0
0
0