Show newer

@andrew Please don't use the standard block lists. Qoto.org regularly erroneously gets on these things, and I suspect there are lots of other false positives, and they are annoyingly hard to roll back.

I suspect you would do well to block nothing, then ad hoc block domains that you see showing up as spam. I don't think there is as much of an arms race there as there could be.

@eric Also reading between the lines I'm guessing you or someone you care about has cancer. Sorry to hear that if true 🙁

@davidism What is it supposed to be an example of? Something with a database? Something you can build in an afternoon?

Some ideas:

- Link shortener
- Simple text adventure game
- Automated prayer wheel that summons a dread god

Seems like my son is the first person in his friend group to lose a tooth.

How much do you think the other parents will pay me to *not* set the going price for teeth at $20?

@glyph I feel like half of my typing puzzles end in "you need higher kinded types". I can't tell if this means HKT are desperately needed or if it means HKT can be abused to solve a lot of problems and the lack of them is a useful constraint.

Here's a typing puzzle: mypy-play.net/?mypy=latest&pyt

I want to have a method decorator that constrains the type of `self` with respect to a generic, but (obviously) does not _reduce_ the type of `self` to require that it accept any instance of the bound the decorator requires. Do I just need higher-kinded TypeVars for this (github.com/python/typing/issue) or am I missing something obvious?

I have the most thoughtful kids!

They know how much I like cottage cheese, so sometimes when I give them milk, rather than drink it all, they'll save some and hide it somewhere. That way, when I am cleaning up the messes they've made around the house, I can find it and oh, look, it's turned into a papa snack!

Warms my heart every time. 😍

Just finished with my son's reading lesson (using *Teach Your Child To Read in 100 Easy Lessons*, which is working *amazingly*, by the way); afterwards, I was trying to looking up the history of the character "a" and was reminded of how rigged the game is.

@bitprophet @hynek Yeah I spent a few days in a hotel in Japan standing in a cramped tub that was not intended for showering (at least not for people >6').

Better than the opposite mistake, though. 😅

It still feels like magic to me that #NumPy allows slices that aren't "rectangular". They can be arbitrary index lists, which in the simplest form allows you to "draw" polygons by first selecting the pixels and then making a single assignment. That's what ski.draw.polygon does.

But it goes further, you can have really arbitrary lists of multi-dimensional indexes so they don't have to be continuous or anything. My simple high-school math mind can barely accept it 🤯

#Python

NumPy 2.0 is coming. You should be excited and terrified in equal measure.

- Stan Siebert at #SciPy2023

I'm not really a textbook reader type, anyone have a recommendation for my colleague who is a Java/Kotlin expert and looking to skill up on ?

@simon You really should specify the build system there. Not specifying it isn't saying, "pip, handle this for me" it's actually conveying, "I created this file in the period of time after tools other than pip started using it but before pip did."

Wow. Meta commits to dedicate three engineer-years to implement the removal of the GIL from #Python and fix upcoming compatibility and performance issues with it.

All this dependent on whether the Steering Council accepts PEP 703.

discuss.python.org/t/a-fast-fr

@bitecode @treyhunner @pycon No, I started where everyone else did and I still don't recommend pendulum. They have a somewhat incoherent model, are much slower.

Need to work with timezones in #Python?

Don't use pytz! Use zoneinfo.

It's included in the Python standard library from Python 3.9 onward and pip install-able if you're on Python 3.8.

If your code needs to run on Windows, note that you'll need to pip install tzdata to use Python's zoneinfo module properly.

If you're really curious to understand this topic deeply, watch @pganssle's talk from @pycon: m.youtube.com/watch?v=rYzgroaK

The scope of a feature request often isn't obvious to the asker. For example, someone just asked on the Python forum to make it possible to subclass `pathlib.Path.` Meanwhile, Barney Gale has spent the last *three years* or so working on all the nuances of that, and it's finally making it into Python 3.12 although there's more to do. He worked so much they made him a core dev. #Python #TodayInOpenSource

Show older
Qoto Mastodon

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