@nedbat@hachyderm.io
@nedbat@hachyderm.io avatar

nedbat

@nedbat@hachyderm.io

Python, software, coverage.py, typography, juggling, Boston, autism (dad). Laughing at the world doesn't mean I don't take it seriously. He/him.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

nedbat, to random
@nedbat@hachyderm.io avatar

It's impossible to sum up . But i wanted to note a few things, including yet another appearance of Sleepy Snake: https://nedbatchelder.com/blog/202405/echos_of_the_people_api_user_guide.html

nedbat, to random
@nedbat@hachyderm.io avatar

It was delightful to get feedback at for my last year's keynote (https://nedbatchelder.com/text/key23.html). But the most surprising and joyous was this drawing by @ludob of the moment when I showed coverage.py's Sleepy Snake mascot (https://nedbatchelder.com/blog/201912/sleepy_snake.html).

nedbat, to random
@nedbat@hachyderm.io avatar

Anyone at from oss-fuzz, or has experience with its bug workflow? I'm trying to understand a bug they've reported on coverage․py.

nedbat, to random
@nedbat@hachyderm.io avatar

Simon Willison's keynote about AI at was full of thoughtful and useful insights: "Imitation intelligence," "Transformative AI," "Don't commit what you don't understand," and "You shouldn't need a CS degree to automate tasks on a computer." If you didn't see it, be sure to get the video when it is available.
@simon

nedbat, to random
@nedbat@hachyderm.io avatar

A first for me I think: no one I know waiting to board the flight to .

nedbat, to random
@nedbat@hachyderm.io avatar

Who's up for a juggling open space at ? Saturday 4PM?

nedbat, to random
@nedbat@hachyderm.io avatar

I'm headed to today, arriving in the middle of the opening reception (if all goes well). I'll be trying to clump together with other dinner-foragers...

nedbat, to random
@nedbat@hachyderm.io avatar

Yes, test freethreading Python!

I added this line to my GitHub Action step to show the environment:

python -c "import sys; print('GIL:', getattr(sys, '_is_gil_enabled', lambda: True)())"

https://mastodon.social/@hugovk/112440452061115479

nedbat, to python
@nedbat@hachyderm.io avatar

Remember that dicts can have tuples as keys! Consider a dict with (x,y) keys instead of nested lists for a grid. It simplifies sparse grids, "resizes" are automatic, it doesn't matter where (0,0) is, and you can use negative positions:

Adding more to the board in flexible ways. https://gist.github.com/nedbat/f22b03f70ceb9686881c4bcd442fad11

nedbat, to random
@nedbat@hachyderm.io avatar

Here's a PDF of the resulting printable schedule, tweaked to avoid the right-hand cutoff: https://static.nedbat.com/PyCon-US-2024.pdf
Four pages, print two-up to get two sheets.

https://mastodon.social/@hugovk/112422128910004621

nedbat, to random
@nedbat@hachyderm.io avatar

I think I am unreasonably pained when I see an expert not able to communicate well with non-experts. Case in point:
N-E: "What's the difference between wifi and bluetooth?"
E: "Well, they use the same frequencies, but wifi is more powerful."

I don't think that gets at the N-E's perspective at all. :(

nedbat, to random
@nedbat@hachyderm.io avatar

People in this thread are suggesting other terms besides "slop", but slop works really well because of the parallel to the existing meaning: food that used to be fit for human consumption, but now is just leftover pieces mixed and mashed indiscriminately so that it's used to feed pigs.

https://fedi.simonwillison.net/@simon/112406874796870923

nedbat, to python
@nedbat@hachyderm.io avatar

You can use Unicode characters in identifiers if they are classified as letter-like, but that doesn't mean that you should!

(Full rules at https://docs.python.org/3/reference/lexical_analysis.html#identifiers)

nedbat, to python
@nedbat@hachyderm.io avatar

A tidbit: with data in a dict, you can use d.get as a function providing the same mapping. Here we sort the student names by their test scores:

nedbat, to random
@nedbat@hachyderm.io avatar

My test suite has just one dot on the last line. What would you do?

  • Delete one test
  • Change the width of the terminal
  • Keep it as a visceral reminder of the uncomfortably chaotic nature of the universe
  • Write more tests
nedbat, to random
@nedbat@hachyderm.io avatar

The only way to make hold music worse is to occasionally interrupt it to say, "please continue to hold." Oh, right: that's what all hold music does... :(

nedbat, to random
@nedbat@hachyderm.io avatar

This was an interesting large addition to coverage. Please give it a try!

Sponsor me: https://github.com/sponsors/nedbat
Hire me: https://nedbatchelder.com/site/hirened.html

https://hachyderm.io/@coveragepy/112326377899877172

nedbat, to random
@nedbat@hachyderm.io avatar
nedbat, to random
@nedbat@hachyderm.io avatar

Just had a great discussion with a senior tech team based on ideas from my PyCon keynote (People, the API User's Guide: https://nedbatchelder.com/text/key23.html). It got me thinking about introverts and extroverts, and how wrong that division is. There aren't two kinds of people. Everyone has places they want to be small, and places they want to be big. Understand your own factors, and find your spaces.

nedbat, to random
@nedbat@hachyderm.io avatar

A difficult thing when writing docs: wanting to use English words that have more specific meanings in Python. Like "Values should be in the set returned by all_possibilities()" when all_possibilities returns an iterable, not a set.

nedbat, to random
@nedbat@hachyderm.io avatar

Anyone remember what #PyCon talk it was where somehow the captioner got in a discussion with the speaker and typed "I'm in the room" into the captions?

nedbat, to random
@nedbat@hachyderm.io avatar

Anyone with some Javascript/HTML knowledge want to help me fix what should be a simple problem with the coverage.py HTML report? https://github.com/nedbat/coveragepy/issues/1765

nedbat, (edited ) to random
@nedbat@hachyderm.io avatar

Is there a changelog for deadsnakes nightly builds? Looks like 3.11 was just removed. https://launchpad.net/~deadsnakes/+archive/ubuntu/nightly

Is there a way for me to know it's happening other than my GitHub Actions failing?

(update: I asked on the deadsnakes issue tracker: https://github.com/deadsnakes/issues/issues/281)

nedbat, to random
@nedbat@hachyderm.io avatar

Pro-tip (that I should remember): just because you are online doesn't mean you have to defend all of your opinions.

nedbat, to random
@nedbat@hachyderm.io avatar

Just realized that I wore the same shirt for my 2012 PyCon talk about Unicode and eleven years later for my 2023 PyCon keynote. Not the same kind of shirt. The SAME SHIRT.
Unicode: https://nedbatchelder.com/text/unipain.html
Keynote: https://nedbatchelder.com/text/key23.html

Me in 2012: Unicode

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • provamag3
  • InstantRegret
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • lostlight
  • All magazines