@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

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... :(

glyph, to random
@glyph@mastodon.social avatar

I saw someone ask the other day what the kernel panic screen looks like on Apple Silicon, and I realized that I wasn't sure I'd seen a panic at all on my M1; a far cry from my frequent acquaintance with the "You need to restart your computer" screen. Felt good, for a moment, about the improvements to reliability.

Today I achieved a kernel panic by accidentally appending to a BytesIO in Python unit test in a loop. (What this looks like is "full-screen magenta flash for one frame, then reboot.)

nedbat,
@nedbat@hachyderm.io avatar

@vathpela I'm sure people would be willing to help you with the problems you are seeing. This sounds like an extreme exaggeration, or a misunderstanding, but we can help.

nedbat,
@nedbat@hachyderm.io avatar

@vathpela Every month was surely an exaggeration. Python tries very hard to be explicit about its compatibility guarantees which are basically, your code will keep working. There are exceptions, but they are visible and slowly rolled out. Perhaps the problems you had were with third-party libraries? In any case, let us know if you run into problems again.

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,
@nedbat@hachyderm.io avatar

@tshirtman It was requested long ago, and there had been a steady stream of people asking for it as well. An overview of functions with low coverage could be an easier way to see where work is needed than to dive into each file separately.

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
nedbat,
@nedbat@hachyderm.io avatar

@hugovk I also like having the title of the step say "windows" instead of "windows-latest".

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,
@nedbat@hachyderm.io avatar

@slott56 All the good words have been taken!

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,
@nedbat@hachyderm.io avatar

@marcgibbons Now that I look on YouTube, I'm not sure how I'd see the live captioning...

nedbat,
@nedbat@hachyderm.io avatar
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,
@nedbat@hachyderm.io avatar

@danzin Thanks! This was indeed the problem. I have to validate the whole file, i've been misusing closing tags.

renedudfield, to python
@renedudfield@fosstodon.org avatar

In #python is there a standard for custom commands? (development scripts/tasks)

Like scripts in package.json with JavaScript or Makefile targets, or custom commands in rust (and alias in rust). For development tasks like format, test, make check... and custom dev scripts.

In python with setup.py you could define custom commands. But now?

Doesn't seem to be a standard for this, just a bunch of separate tools. But I would love to know if I'm missing something for custom commands/scripts.

nedbat,
@nedbat@hachyderm.io avatar

@renedudfield People choose different approaches. Common ones are make, tox, and nox.

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,
@nedbat@hachyderm.io avatar

@boxed 3.11 is removed from the nightly builds, not from deadsnakes entirely.

nedbat, to random
@nedbat@hachyderm.io avatar

Be careful with negative assertions in tests!
assert file_doesnt_exist("old_name_for_file") will still be true after you change how files are named and accidentally make the file with the new name.

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,
@nedbat@hachyderm.io avatar

@xahteiwi I knew I could count on you! :D

mariatta, to random
@mariatta@fosstodon.org avatar

Dear event organizers, thanks for putting it all together, but please also state:

  • your time zone (and be explicit about "UTC+-???", instead of just "EST")

  • your event hashtag (is it # EventName?, or # EventNameWithYear?)

nedbat,
@nedbat@hachyderm.io avatar

@philip @mariatta I share this pet peeve. People who say EST really mean "Eastern time in effect during the event." I say "Eastern time" to avoid the problem. I'm sure there's an issue with that too.

nedbat,
@nedbat@hachyderm.io avatar

@mariatta @philip Oops, yes, "US Eastern time" ftw.

nedbat,
@nedbat@hachyderm.io avatar

@mariatta @philip BTW, I see "EST" right now on the PyCon site.... :(

nedbat, to random
@nedbat@hachyderm.io avatar

In which I write a blog post simply to record what I learned reverse-engineering my own site's flexbox layout: https://nedbatchelder.com/blog/202404/my_flexbox_layout.html

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