Show newer

This is possibly my least (most?) favorite #PythonOddity :

```
def loop():
for number in range(10):
def closure():
return number
yield closure

eagerly = [each() for each in loop()]
lazily = [each() for each in list(loop())]
```

Understanding why `eagerly` and `lazily` differ is *crucial* to understanding how scopes work in Python, and illustrates a weakness in the otherwise pretty great “you don’t have to declare variables” structure of the language.

@tstrike78
That reinds me of the Nimoy/Spock story.

Leonard Nimoy got tired of being seen as Spock everywhere all the time. He wanted to be known as the skilled director he was. His first autobiography was titled "I'm Not Spock."

Years later, when flip phones were new, he was walking down the street when his phone rang. He picked it up, and in an easy, reflexive movement, flipped it open and put the fingers of his other hand where the knob on the Star Trek communicator would be. It was a motion he had made hundreds of times while in character. At that moment, he realized just how deep an impression that character had made in his life.

His second autobiography was titled "I Am Spock."

I heard this story in an interview with Nimoy years ago, back in the flip phone era.

#Spock #StarTrek

@Kierkegaanks @RickiTarr @oook

I have a client who uses Unity and recently passed the threshold for Unity's free license, so they had to upgrade. They asked me if we would get any improvements from the upgrade that we could use for their software that I'm building.

I had to tell them that they were being required to pay $2000 a year for the right to remove the Unity splashscreen, and that's about it. 🤦‍♂️

At this point, the Unity Engine is running only on momentum. It's just a matter of time before it crashes and the company dies.

This post from @MissingThePt brought me back to my 9th grade Civics class:
mastodon.social/@MissingThePt/

Our teacher decided that we needed to learn about the virtues of the Free Market, so he devised a special plan: students would own resources in the classroom, and rent them out to other students. Educational!

1/

The Abolition Amendment, which would finally end (prison) slavery:

merkley.senate.gov/merkley-wil

It's listed as "bipartisan", although all of the Senate sponsors are Democrats (plus Bernie). There are a number of House Republicans involved, but it's a good bet the mass of the GOP will do everything in their power to block it while insisting they're not racist ("but Lincoln!").

@Moosader Yes, but you can pause to think as often as you like. I spent most of my time paused.

youtube.com/watch?v=4Zp1kJIIFA

A fascinating interview with Dr. Juan Gilbert, leader of the Computing for Social Good Lab at the University of Florida.

learning.acm.org/bytecast/ep55

Last night I dreamed that I fell in love with somebody because she named her cat Danny Windex, and I've been laughing about it all day. The perfect absurd dream.

#dreams

During the construction project, we will deal with any hazardous material asbestos we can.

I've never had a hero or a mentor but there's a huge raccoon on my street who's been stealing boots from backyards and then throwing them at people from high in her tree, and tbh she might be it

Overheard: "In retrospect, I'm probably going to regret drinking all that lemonade, aren't I?"

Wow, Boston's fire boxes (which work) don't need power to run.

"The city's street fire-box system still uses the same basic mechanism as employed in the 1852 boxes: A spring-based system inside the box generates Morse Code-like signals to a central alarm station that indicate the box's number, and so its location, without the need for fancy electronics or even an external power supply. The fire-alarm office has been located in the Fenway since 1925."

universalhub.com/2018/north-en

@ratking It's infrequent, so I'm working on other priorities. When I have time, I'll try building a minimal scene that exhibits the problem.

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.