Any #python folks know of a library for drawing pretty-looking, clean boxes arranged in various patterns?
I am looking to make some simple images like this to demonstrate addition, subtraction, multiplication, etc.
Bonus points if it has support for some existing pedagogical framework (e.g. "ten frames").
#pedagogy #education #earlyeducation #visualization #homeschooling
Of course, a countervailing force here is that they are also stupidly good at translation, so the utility of actually learning another language is reduced.
They can explain nuances in a way that automatic sentence-to-sentence translation can't, and you can give them enough context to let them know how to select the right way to translate what you want to say into idiomatic speech.
Of course, you will sound like an obsequious PR person if you don't take steps to avoid that. 😛
As I've been learning Spanish these past months, I am almost compelled to create an LLM-powered language learning application. It is really hard to do spaced repetition without it turning into a grind, and the ability to create (and parse!) custom, idiomatic text programmatically could be an absolute game changer here.
They are also really good at answering questions about how language use and I haven't noticed much (anything?) in the way of hallucination with frontier models.
@hugovk As stated at the end of this blog post, PyCon US official hashtag is #PyConUS 😅 I guess we need to make that even more obvious and repeat that statement many times. https://pycon.blogspot.com/2023/10/pycon-us-2024-launches.html
🎲 Do you like Python's little CLIs? For example:
$ python -m http.server
$ python -m webbrowser https://www.python.org
$ python -m uuid
$ python -m calendar
What about adding one to `random`?
$ python -m random curry "fish n chips" tacos
curry
$ python -m random 6
6
$ python -m random 2.5
1.6423361547011504
Give your feedback on my proposal at
https://discuss.python.org/t/command-line-interface-for-the-random-module/51304
If there's support we *might* be able to get it into 3.13 before May's beta cutoff! 🤞
In Python 3.11+ datetime.datetime.fromisoformat( accepts any number of decimal places in the seconds component, extra digits are truncated (not rounded)
>>> datetime.datetime.fromisoformat('2011-11-04T00:05:23.1234567Z')
datetime.datetime(2011, 11, 4, 0, 5, 23, 123456, tzinfo=datetime.timezone.utc)
https://gist.github.com/moreati/85de3f0745d473f54dd9076125338642 #TIL #Python
Quick #Python packaging tip: if you ever find yourself wanting to type `import src.anything` or `from src import anything`, turn back. `src` should never be part of an import.
Now I just need to figure out why my #archlinux server computer freezes up whenever I turn off the monitor it's connected to and I'll be a happy man. 😅
For the past few years, my computers have failed to wake up the large 4k monitor connected to my dock, which has been a source of great annoyance to me.
Just a few days ago I came across something that suggested maybe the issue was that the monitor needs HDMI 2.0+, so I bought a newer HDMI cable and now it works perfectly, so if you are having a similar problem, might be a good idea to try a newer cable.
Anyone know if there is a gym in #pittsburgh that is reasonably close to the convention center that will sell me a short term membership while I'm at PyCon?
A cable machine, dumbbells and an elliptical is enough to do my whole workout.
I recently optimised .startswith() and .endswith() to be more than 4x faster than before. Before, a bulky slice-and-comparison operation (s[:n] == other) would be faster; now the idiomatic variant is faster. Keep on writing idiomatic code!
Python 3.13 time.time() on Windows now has a resolution of *238 ns* instead of *15.6 ms*: it's 65 500x more accurate! The feature was requested 11 years ago (2013)! Better late than never 😉 https://github.com/python/cpython/pull/116822
Extremely excited to share my team at NVIDIA is hiring for a full time role working on ✨ open source Python packaging projects ✨ like Warehouse, pip, and more!
If you are or know someone excited about open source Python development, especially focusing on open source packaging projects, please take a look! And if you have any questions for me, please reach out.
Please boost for spread!
When you say #PiDay, I hear #PyDay. Let's celebrate this day with a special episode with a special guest: sitting Steering Council member and #Python core developer, Emily Morehouse-Valcarcel!
We're talking about the Steering Council, progress bars, least and most favorite parts of Python, and of course, assignment expressions.
I'd use a walrus emoji, but the best we've got is a tuskless seal! 🦭 There's no anonymous crow either...
I logged on to twitter for the first time in ages because I wanted to contact someone whose preferred contact method was twitter DMs, and twitter suggested that I "interact with [my] timeline more" to help them learn that I'm human.
With the current state of twitter, I'm not sure that "likes to interact with this website" is a particularly common trait among humans...
On the plus side, I suppose this means I'll have a backup motherboard if the new one ever goes out. Maybe I should get a backup CPU as well to reduce downtime.
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.