How did they even find the time to play this much hockey?

@simon You may also want to note that this changes the semantics of your `datetime` object, which is why we didn't just make `datetime.utcnow()` an alias for `datetime.now(UTC)`. If you change it you have to change it everywhere, and make sure all the datetimes you are consuming from other libraries are also aware.

(Also in the second example you have `import python` instead of `import datetime`).

@anubhav @simon Generally I recommend using `datetime.timezone.utc` for the UTC object, though there's usually also a UTC object in `zoneinfo`.

@pradyunsg @brettcannon @kevin @tintvrtkovic I can't tell if that is right. I distinctly remember that Ruby used to be a pain like Python was (requiring a compiler, etc), and then they had a change similar to our change with wheels that made it not a pain.

I just created a bundle with `nokogiri` and `sqlite3` and this was included in the verbose output:

```
Fetching racc 1.8.1
Fetching sqlite3 2.4.1 (x86_64-linux-gnu)
Installing racc 1.8.1 with native extensions
Installing sqlite3 2.4.1 (x86_64-linux-gnu)
Fetching nokogiri 1.17.1 (x86_64-linux)
Installing nokogiri 1.17.1 (x86_64-linux)
Bundle complete! 2 Gemfile dependencies, 4 gems now installed.
Bundled gems are installed into `./.vendor/bundle`
```

That makes me think that `racc` has native code that needed to be compiled, but `sqlite3` and `nokogiri` had some pre-built binaries available. Maybe a person can chime in if I'm misunderstanding it.

@jscholes Actually my cards are mostly audio based as well because I've been using comprehensible input and there was a recommendation to avoid reading in the target language until fairly late in the process.

The cards are pretty Android specific and they currently only read the Spanish part, but they might be a good starting point. DM me your info and I can try to send you some of my stuff.

@brettcannon @kevin @pradyunsg @tintvrtkovic Looking into it a bit, seems like Ruby definitely has equivalent of a wheel ("native gems" I think they are called) and npm has something like this as well, looking at this: npmjs.com/package/prebuild

@brettcannon @kevin @pradyunsg @tintvrtkovic Ruby has some equivalent thing I think, no? Is that what a gem is?

I adjusted the prompt that generates example sentences for my Spanish vocabulary Anki deck so that it intermittently tries to include interesting facts in the cards, and it has worked out marvelously.

Apparently sperm whales (cachalotes) are the loudest animals in the world.

@somafm Instead of removing emojis, why not replace them with the canonical name from the Unicode standard?

Is there a good library out there in Python that provides a simple abstraction over the major LLM providers, such that it's easy for me to swap out which one I'm using for a given project?

I find myself writing my own version of this because each of the LLMs have strengths and weaknesses, and sometimes for a project I want to test them all out before committing to use a specific one.

A few months back I looked at @simon's `llm`, but from what I could tell it was mostly wrapping ChatGPT or compatible APIs, and I wasn't sure how to use it for everything.

¿Me podrían recomendar blogs, glosarios u otros recursos con terminología tecnológica en español? Quiero aprender a comunicar conceptos sobre programación, redes, seguridad, "open source", "dev ops", accesibilidad, etcétera.

Can anyone recommend blogs, glossaries and other resources with technological terminology in Spanish? I want to learn to communicate about concepts in programming, networking, security, open source, dev ops, accessibility, etc.

If you are learning Spanish like me, just remember that *ser* is for permanent characteristics like your job title or the location of a party, whereas *estar* is for transitory conditions like death or the location of Barcelona.

Spanish often has an H where most other Romance languages have an F.

Take 'hijas' (daughters) vs. French 'filles', Italian 'figlie', Portuguese 'filhas'.

In Old Spanish, Latin [f] became an [h] sound.

Later, this sound disappeared.

Click to hear how it went:

A thread: 1/

I was explaining retirement to my son today and he said, "Oh, I might not ever have to work."
"Why not?"
"I am going to ask Santa for $2M this year. Then I'll be able to retire."
"Hmm.. I have never heard of Santa giving anyone enough money to retire on, to be honest. And $2M might not be enough..."

I noticed that he and my wife made the list today and he has now upped the request to $2B. Go big or go home, I guess. 😅

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

@bignose @cenobyte Having a thousand things shoved in your face is not really "discoverable" in my opinion, because it's too noisy.

I don't know if IRC is the best, but when I used to just show up on a server and look for rooms, it was easy to just browse the directory, same as with Matrix.

@hroncok My counterpoint here:

- The current Python REPL is pretty rough, and this is a *dramatic* improvement.
- A lot of the weird behavior and bugs don't show up until you get a lot of eyes on it, which means that the first release will always look like this.
- Given that it's an interactive terminal and not part of "hands-off" deployments, the kinds of bugs you are likely to encounter are less like, "Oh this created a bunch of work for me today because our whole pipeline broke" and more like, "Oh this new REPL isn't working for me, I should disable it until it works".

I am neutral about the lack of a PEP. It's definitely a major new feature, which weighs in favor of a PEP, but also I'm not sure how well it fits with the PEP process. It's not a major language feature, it's more an overhaul of an interactive application bundled with the language. I'm not sure what choices or trade-offs needed to be made that they would want people to weigh in about, or what decisions the SC would be making.

I also think the case could be made for saying that if you were to make the individual changes one at a time, none of them would require a PEP (with the possible exception of `exit() -> exit`).

Show older
Qoto Mastodon

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