photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

267
active users

#recursive

0 posts0 participants0 posts today

#Python question...

I recently ran into a surprise using #pathlib.Path - seems to be a sharp edge and I'm curious if others have run into it and what you thought.

I wanted to find all #files/#dirs below the current #directory, and thought a #recursive #glob would do it - `Path.cwd().glob("**")`. I was surprised that this returns all directories but not files. "**/*" is needed to find the files as well.

I'm not a big user of recursive globs, so maybe this is expected #behaviour?

Replied in thread

@jsdodge @TheConversationUS @academicchatter @eilonwy

"
now do you think uh Cosby is a legacy that will be hurt yeah you do right I mean there was a comedian Patton Oswald he told me I think the worst part of The Cosby thing was the hypocrisy and I disagree you disagree with that yeah I thought it was the raping"

The #hypocrisy isn't great, but probably worse is selectively applying standards to promote a political agenda.

youtu.be/_KK2wtfvmkE?si=p9e1s0

The #irony is #recursive .

Continued thread

The main problem with the Spider-man poll was that I put an option that I hadn't made, and it got some votes, and that got me wondering.

Anyway, going to hide this one away behind a sensitive media tag because frankly no-one wants to see this, but I had to make it once it popped into my head.

You've seen IN.
You've seen OUT.
Now see SHAKE IT ALL ABOUT.

(or not, up to you)