Better HN
topnewbestaskshowjobs
Log inSign up

idk_fourmaybe

1 karma · joined Feb 12, 2015 (11y ago) · 2 submissions

I don't know ...
Submissions

comment 11y ago · link · parent

Not as strong as other languages perhaps, but Django & co. are more than capable of turning out nice web stuff.

comment 11y ago · link · parent

Slightly OT.

As much as I love Python, in this case a '1-liner' using awk and sort or sed, tr, dd etc. would get you there 'faster'.

awk '{print tolower($0)}' domains.txt > whitelist.txt && cat whitelist.txt | sort -o whitelist.txt

That's probably just because the example is kept simple to illustrate Python's terseness, readability, productivity etc.