• 12 Posts
  • 361 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle







  • I’ve been playing around with the disabled GIL build and though I use threads fairly extensively in my projects, it’s been smooth sailing so far. I feel like my GUI scripts might be a bit more responsive now? (I tend to farm out user events to dedicated threads, so this is entirely possible.)

    But overall, everything is stable and awesome! I’m so excited! This has been a long time coming for Python.


  • Yeah it’s kind of an arm’s race with people feeling they need to be the biggest thing on the road to feel safe. I’ve driven a few larger vehicles as airport rentals when they had nothing else in stock, and I’ve noticed they also tend to have a lot more blind spots than what I’m used to.

    I remember when I was taking lessons, my instructor said I should think of the airbag as being a spring-loaded spike that will impale you if you screw up. I guess he was trying to impress on me that it’s not good to feel safe and smug when you’re driving? And actually, I’ve read since that air bags can be pretty violent when they go off, so he may not have been as far from the truth as I thought?


  • I wish there were more regulation on the size of private vehicles, particularly in North America. It’s pretty clear at this point that what is contributing to higher pedestrian/cyclist fatalities despite better urban infrastructure is the increasing curb weight and ground clearance of automobiles. We can hope that collision-avoidance tech in newer models may reduce human-error type accidents, but at the end of the day, kinetic energy is a bitch.

    I wonder how the EV transition will affect things? On the one hand, an EV would weigh more than an ICE of the same class since batteries are heavy. On the other hand, batteries are also the most expensive component by far and you need more in a larger vehicle, so from a dealer’s perspective, the margins may not necessarily grow the bigger you go like with an ICE. The sweet spot might actually be something smaller. (In fact, for me, it’s actually ebikes.)



  • I haven’t lived in Toronto in years, but was a bike courier there in my student days. My recollections, dated as they may be, are as follows:

    • University is a huge expanse of road with ample room for bike lanes. I can’t imagine why you would remove them? I suspect it has something to do with Queen’s Park sitting in the middle of it and Ford having a personal axe to grind?
    • In all the time I lived in Toronto, I don’t think I ever drove on Young St. At least not in the downtown core. Does any self-respecting local do this? I always thought it should be made into a pedestrian mall like Sparks St. in Ottawa.
    • To be fair, I tended to avoid Bloor on my bike except in places where you really can’t avoid it like crossing the viaduct. This was more to do with it being a perpetual construction zone than because of automobile traffic though. I don’t know how it is now?



  • I worry about what this legislation could mean for medium-sized cities like where I live that are only now starting to put in bike infrastructure. It is underutilized at this point, but that’s because it is still incomplete.

    You have, for example, a wonderful off-road trail that is 90% complete connecting the suburbs to downtown, but there is one section where you have to cross a bridge with no bike lanes or anything. Until that part gets done, few people will use the rest of it. But if they decide to take a lane away from cars on the bridge, the province could argue that no one uses the trail in the first place and shoot it down. Uuugh!

    I was recently in Montreal and omg it’s cycling heaven! Bikes outnumber cars in many places and vehicle congestion seems less in spite of this. Also, drivers seem more cautious in general in the downtown core, even on roads where there are no cycle tracks. It’s a bit like the college campus effect I guess? When you have a high density of non-automotive road usage, the cars tend to slow down and be more patient. They’re moving slower but there is still a steady flow of traffic. Not a lot of gridlock.


  • My most common use case is probably looking up stuff that may or may not be in a dict.

    if (val := dct.get(key)) is not None:
        # do stuff with val
    

    I guess that’s pretty similar to what you were doing?

    Sometimes I also use it in some crazy list comprehension thing when I get backed into a corner, though it’s hard to think of an example off the top of my head? It usually happens when I’m in a rush and desperate to get something working, but it has an uncanny way of being just the thing you need at that point.