|
|
|
|
|
by mixmastamyk
2587 days ago
|
|
It pays to look thru the stdlib every so often, there is just so much there, and plenty of dark corners (in the Warcraft sense) to look in. I hand rolled stuff in itertools/functools for years before discovering them.... collections Counter, etc. Or how about str.partition instead of try: str.split() ? |
|