News for hackers. Stuff that matters.

idk_fourmaybe

Re:Why I don’t worry about Python losing users on Thursday February 12, 2015 @06:17PM (#9042005)
Not as strong as other languages perhaps, but Django & co. are more than capable of turning out nice web stuff.
Re:Why I don’t worry about Python losing users on Thursday February 12, 2015 @06:10PM (#9041970)
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.