@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.

astrojuanlu, to random
@astrojuanlu@social.juanlu.space avatar

It's that time of the year again: if you support users online, and more so if you're part of an open source community, please take a deep breath and read @nedbat "How to be helpful online" guide

https://nedbatchelder.com/blog/202009/how_to_be_helpful_online.html

nedbat,
@nedbat@hachyderm.io avatar

@astrojuanlu Thanks! TBH, I'd kind of forgotten that I wrote this! I re-presented much of it in my PyCon keynote also: https://nedbatchelder.com/text/key23.html

nedbat, to random
@nedbat@hachyderm.io avatar

Is there a case to be made for "nonetheless"? Can't we use "still" instead?

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

How do you pronounce "regex"?

nedbat, to random
@nedbat@hachyderm.io avatar

"The best thing to use in this test would be a verified fake"

"Verified fake, isn't that a Twitter thing?"

nedbat, to random
@nedbat@hachyderm.io avatar

Python proposal (inspired by Lua!):

args = {'a':1, 0:98, 1:99, 'b':2}
f(**args)

is the same as:

f(98, 99, a=1, b=2)

I've long wished to have one thing that could serve as both *args and **kwargs. Int keys are already invalid, so nothing would break.

nedbat, to python
@nedbat@hachyderm.io avatar

3.7 reached end-of-life this week. I've updated the What's in Which Python page:
https://nedbatchelder.com/text/which-py.html

nedbat, to python
@nedbat@hachyderm.io avatar

Is your company interested in hiring Boston-area developers? Sponsoring Boston Python could be a great inexpensive way to let people know! https://about.bostonpython.com

Find the right person at your work, and have them get in touch with me! ned@bostonpython.com

nedbat, to random
@nedbat@hachyderm.io avatar

Today's maintainer CI headache mystery. Maybe someone can figure it out...?
Why can I install filelock==3.13.1 just fine in the "WTF" step, but it fails when requested specifically in the "Run tox" step? Why does it fail for windows pypy3.9 and 3.10, but not for other OS's, or for windows pypy3.8?

https://github.com/nedbat/coveragepy/actions/runs/6997531869/job/19034606408

nedbat, to random
@nedbat@hachyderm.io avatar

Mastodon is good. I'm also trying Bluesky: https://bsky.app/profile/nedbat.com

If anyone wants invites, hit me up.

nedbat, to jupyter
@nedbat@hachyderm.io avatar

A few weeks ago I asked about fixing a notebook. It's fixed now, and also nicer code. Run financial simulations with sliders for variables: https://nedbatchelder.com/blog/202402/updated_multiparameter_interactive_jupyter_notebook.html

nedbat, to random
@nedbat@hachyderm.io avatar

Lazyweb! Is there a readthedocs.io way to have a fixed URL format with specific pages that will always go to my default?

For example: https://coverage.readthedocs.io goes to /en/7.3.2, because I set 7.3.2 as the default version.

I want something like https://coverage.readthedocs.io/default/anything.html that will redirect to /en/7.3.2/anything.html

nedbat, to random
@nedbat@hachyderm.io avatar

Dear credit card company: I already have one of your credit cards, that's why I'm logged in on your site. Why would you think the main thing I want to do here is to get another credit card?

nedbat, to python
@nedbat@hachyderm.io avatar

Just saw someone describe as "strangely easy" :D

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

After seeing @dabeaz's comments on Alan Kay's history of Smalltalk, I read the whole thing. It's insightful (in parts).

https://nedbatchelder.com/blog/202308/alan_kays_objects_and_arts.html

"The reason many of us want children to understand computing deeply and fluently is that like literature, mathematics, science, music, and art, it carries special ways of thinking about situations that in contrast with other knowledge and other ways of thinking critically boost our ability to understand the world."

nedbat, to random
@nedbat@hachyderm.io avatar

It's good to write code just to help you debug your real code.

https://nedbatchelder.com/blog/202311/debug_helpers_in_coveragepy.html

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

"I think I'll go back to that work I was doing six months ago."

opens file

"I have no idea what any of this code does, or why the author would have written it like this..."

nedbat, to random
@nedbat@hachyderm.io avatar

I get it that cloud services are designed to scale up to thousands of machines, etc, but can't there be a Baby's First Machine mode where I don't have to create a resource group arena, a network collection menagerie, a security envelope bundle, and a user population demographic first? I just want one machine. Default everything for me!

nedbat, to random
@nedbat@hachyderm.io avatar

Just add a quick feature, they said. It will be fun, they said....

nedbat, to random
@nedbat@hachyderm.io avatar

Remember the good old days before we welcomed our new type-checker overlords?

nedbat, to random
@nedbat@hachyderm.io avatar

“Four different learning styles” has been debunked, but learners still have to learn how they learn, and choose the paths and materials that are right for them.

The myth of the myth of learning styles: https://nedbatchelder.com/blog/202309/the_myth_of_the_myth_of_learning_styles.html

nedbat, to random
@nedbat@hachyderm.io avatar

Just discovered: Conway's Life is omniperiodic. Pick a number, there exists an oscillator that repeats in that many generations.

https://www.quantamagazine.org/maths-game-of-life-reveals-long-sought-repeating-patterns-20240118/

nedbat, to random
@nedbat@hachyderm.io avatar

Yes, Trump has plans to tear everything down if he wins. No, we don't want him to win. Doom-scrolling won't change anything. I'm looking for ideas: what can we do now to help move the needle?

meejah, to python
@meejah@mastodon.social avatar

Hey what other information would you like to see in a CLI coverage tool?
(This shown inside a github action log)

nedbat,
@nedbat@hachyderm.io avatar

@orsinium @meejah There are edge cases to deal with when trying to map line data to function data, but if there is interest in this, it would be great to add to coverage․py itself.

nedbat,
@nedbat@hachyderm.io avatar

@orsinium @meejah Cool, it's not often you see people using the trace stdlib module!

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