nxdefiant

joined 2 years ago
[–] nxdefiant@startrek.website 1 points 2 years ago* (last edited 2 years ago)

If you're talking about the package icecream, there's "ic.format()" that returns a string you can log, instead of printing directly to standard out.

More generically, you can have pythons logger capture all of standard out, but that's kind of a shotgun approach, and depending on what your doing, may have some side effects you don't want.

[–] nxdefiant@startrek.website 11 points 2 years ago

The only thing esoteric about python is the bolted-on typing and anything behind a double underscore.

So yeah, it's there, but in front of the curtain it's practically pseudo code.

[–] nxdefiant@startrek.website -3 points 2 years ago (1 children)

It's a shitty question. It's implied by the fact that "24" is wrong that the answer is "6", the length of the string "Monday".

In some languages dot access on objects could give you the properties of the object type (things pertaining to a "day" object) but this would still be ambiguous since a day's length can be measured in many different ways.

In others, it would require you to call length as a function (.length()) or not be available at all, or require you to pass the object into another function [ length_in_seconds(day_x)]

[–] nxdefiant@startrek.website 22 points 2 years ago (8 children)

Especially since python is right there.

[–] nxdefiant@startrek.website 86 points 2 years ago (6 children)

Wallace, no contest.

[–] nxdefiant@startrek.website 6 points 2 years ago (2 children)

It's all hosted on pornhub now.

[–] nxdefiant@startrek.website 1 points 2 years ago

I actually found this over the lockdowns because I did remember it and wanted my kids to see it. What I had forgotten about was the terrible robot mascot thing that they crammed into the beginning and tried to make a part of the movie for no reason.

[–] nxdefiant@startrek.website 5 points 2 years ago

weaponized moldiness. clever girl.

[–] nxdefiant@startrek.website 25 points 2 years ago (1 children)

Sucked backwards down the golden shitter on his plane, mid flight, shredded, and strewn across the Atlantic. The oil slick would be the size and shape of Florida, and the damage to sea life, severe, but I think it would be worth it for the spectacle.

[–] nxdefiant@startrek.website 2 points 2 years ago* (last edited 2 years ago)

Aaahhh, there's the juice.

[–] nxdefiant@startrek.website 38 points 2 years ago* (last edited 2 years ago) (1 children)

This is why Europe keeps getting it wrong. Real enshittification comes from the heart.

[–] nxdefiant@startrek.website 2 points 2 years ago (3 children)

Their formula for calculating greenness drastically underestimates the impact of carbon emissions. That's the only reason there's a PHEV at the top of the list.

view more: ‹ prev next ›