python-code-disasters
python-code-disasters copied to clipboard
import datetime as date; [print(i) for i in sorted([i.rstrip() for i in lines.splitlines() if i and i[0]=='['],key=lambda x: date.datetime.strptime(x[-9:-1], "%b %Y"), reverse=True)]
Just a little script that I wrote it takes a list :) Expect more!
@Em-Lopez can you please explain why did you wrote this script and for what purpose?
You can also send a PR with this code directly to the codebase! 🙂