Payne747

@payne747
1 Followers
12 Following
17 Posts
UK based lover of #trains (simulated or otherwise), owner of The Serpent, and all round digital demon of darkness. You'll find #retrocomputing and other crap. Consider most things /s.
Websitehttps://www.theserpent.co.uk
I love the fact that a search for "Windows 98 boot disk" doesn't produce results about the disk or the nostalgia of it, but rather "do you need a win98 boot disk!?". Some things never change #retrocomputing
Has anyone reminded trump that a few weeks ago, the Straight of Hormuz was open just fine. We didn't need his help closing it.
Looking forward to walking the Northampton & Lamport railway in the summer. The path follows the railway so you can get up close. #trainspotter #trains
Here's an MP3 player I made in C++, circa 2000. It had a million bugs, but the random playlist feature was pretty cool! #retrocomputing
Guess the station, it was closed when I arrived but still nice to see some old Mark 2's chilling at the station. #trains
There was a time when British Rail charged you for your dog...

@payne747 @gwidion

say you have a loop that fills a output list with results of some operation from an input list:

results = []
for item in things:
compute something using item
results.append(result)

there is a more direct way to represent that, by describing what the content of your result list will be, for each item

if you move the things around a bit for you can get

results = [ compute something using item for item in things ]

Just #python things. They should be called "List Incomprehensions"
The day we encrypt ICMP, I'm quitting.