Man my package has been stuck at a UPS facility in Koeln, Germany for 10 days now, apparently this is a very common theme: reddit.com/r/UPS/comments/1f96

And from older threads, it seems like it has been like this for years (I dunno if it is constant or intermittent).

I wonder if this is just a dysfunctional facility or if stuff gets stuck there because everything goes there before coming to the US and the problem is getting stuff from Europe to the US in general...

Just released: humanize 4.11.0 🚀

github.com/python-humanize/hum

This adds a new API:

>>> natural_list(["egg", "sausage", "beans"])
'egg, sausage and beans'
>>> natural_list(["egg", "sausage"])
'egg and sausage'
>>> natural_list(["egg"])
'egg'

Adds the newest ronna and quetta SI prefixes: npl.co.uk/si-prefix

Drops support for Python 3.8,
fixes rollover from ZB to 1.0 YB, fixes French & Chinese translations & finding location of translations, & improves import times.

#Python #humanize #release

I've been conducting more interviews lately, some of which involve traversing a tree / graph, and I am kind of surprised to find that uniformly everyone does these traversals with recursion. I'm not surprised to find that it's popular (I think it's often taught as an example of something where recursion is appropriate), but I personally almost never use recursion (especially in Python).

I think the main reasons I almost always avoid recursion (both in interviews and in practice) are:

1. I prefer to be very explicit about the resources I am using. It's easy to not realize how much overhead you are storing in the frame stack, whereas when you have an explicit stack or queue of nodes, it's quite easy to see what you are storing and passing up and down the stack.
2. No running into recursion limits (mostly Python specific thing).
3. It's pretty easy to switch between depth and breadth first searches by changing from a stack to a queue and vice-versa, whereas if you change your mind and decide you need to do BFS when you've written a recursive traversal, you have to rip everything out and start over.
4. When I need access to some resources outside of the traversal (either to modify them or for some other reason), it seems cleaner to use a variable that is already in scope rather than a closure (though maybe that's a dubious distinction).

Looking at this list, I do think that (other than the recursion limit thing), this is mostly just a bias against recursive functions. I think the primary benefit of a recursive function is that I think it's easier to pivot to a concurrent traversal by spawning multiple child nodes and letting the stack handle your resolution order for you.

Man, every time I've used Discord it has been an aggressively unpleasant experience. How is this platform so popular?

Traveling to Seattle without renting a car or bringing an umbrella...

It is supremely weird to me that the default view of stock charts I've seen always seems to show a chart from the last day. I guess it is consistent with the hyperbolic and (arguably) borderline irresponsible nature of modern media...

Hm.. Website has cross-site-origin headers configured incorrectly on their feedback form, meaning I cannot actually send them any comments, like, "By the way your feedback form is broken..."

Para los que tienen el español como lengua materna, ¿le encuentran sentido a este chiste malo de papá sin necesidad de traducirlo al inglés?

youtu.be/CpcWbwwLHkg?si=d_W8Ml

(4m29s si el enlace no te lleva directamente al momento exacto)

New #cattrs is out (24.1.0) but I'm too exhausted to do a large thread about it. The changelog is pretty large: catt.rs/en/stable/history.html

A couple of my favorite features:

Hook factories can have the converter injected as an argument now. This very simple change makes them much more self contained and more fun to write.

Some converter APIs can be used as decorators now, and will read type hints from the decorated functions. It's a small thing but it adds finesse.

@hynek helped focus the docs!

I entered a game into #ifcomp2024 called Birding in Pope Lick Park! Its a peaceful simulation of one of my #birding walks in my favorite park. It includes photos taken by me of actual locations in the park, and photos taken by me of many of the birds mentioned in the game.

Play here: ifcomp.org/ballot?alphabetize=

It should take roughly 30 minutes. Play on WiFi because of the high resolution images. Should work on phones or computers.

#ifcomp #InteractiveFiction

Mildly chuffed that I can't find recommendations for practical tips for which phone to get for a young kid (6-7).

All I can find is moral panic narrative stuff about not getting your kid a phone and recommendations for super locked down, deliberately crippled Orwell phones. I am looking for stuff like, "This one is cheap and rugged and they can operate it with their tiny hands" not "This one doesn't have a browser and you can remotely activate the camera to spy on your child, if you're insistent on raising a damaged child who had a phone too early."

STOP DOING ONLY VIDEOS FOR MANUALS OR TUTORIALS! i just want to have a fucking written text with screenshots!

Ok, so I just watched the first episode of Dragon Ball for I think the first time, and upon meeting Goku, Bulma hits him with her car, then shoots him several times with a *gun*, and then **expresses surprise that this has failed to kill him** (note: he is obviously a child and she clearly believes this).

I guess there are talking dinosaurs and other prehistoric beasts around trying to eat people, so maybe this is just a post apocalyptic, kill-or-be-killed hellscape?

PSA we are hiring folks interested/experienced in #Python #packaging.

This is a fully remote position, so we can hire pretty much anywhere and you'll get to work with an incredible bunch of peeps in #opensource

job-boards.greenhouse.io/quans

"Why did they bring us menus, we already know what we want! We want sushi!"

Kids are cool sometimes. 😎

First verse of the version from Peru lacks variety, but that second verse takes an awesome turn:

> Feliz Cumpleaños, a ti,
>Feliz Cumpleaños, a ti,
>Feliz Cumpleaños (name),
>Feliz Cumpleaños a ti.

>Que los cumpla feliz,
>que los vuelva a cumplir,
>que los cumpla bastante,
>Hasta el año 3000.

Yes, Peru, I, too, chafe under the yoke of mortality, and yearn for the day that humanity finally breaks free from our limited lifespans. Vivan todos.

Show thread

My son goes to a Spanish immersion daycare, and at pretty much every birthday party someone tries to start up a round of "Cumpleaños Feliz" after "Happy Birthday", which inevitably trails off into incoherence after "Cumpleaños feliz, Cumpleaños feliz..."

I thought it was because the majority of the parents are American English-speakers, but when I tried to find the proper lyrics, I found out that it's basically a free-for-all out there: cancionfeliz.com/letra_cumplea

Try searching for youtube videos and you'll find a bunch of 2-3 minute songs with a *lot* more lyrics, too.

Setuptools has finally removed the test command in v72, after 5 years of the depreciation warning.

Now it seems lots of modules are failing because they never did change their test suite.

setuptools.pypa.io/en/stable/h

#python

Show older
Qoto Mastodon

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