868
submitted 1 month ago by [email protected] to c/[email protected]
top 36 comments
sorted by: hot top new old
[-] [email protected] 98 points 1 month ago

Not feature complete, needs to be tied with a RNG to determine when TARIFF ON and TARIFF OFF

[-] [email protected] 58 points 1 month ago* (last edited 1 month ago)

Hidden feature: Defines a tariff.admin.impeach function that increments a global counter and does absolutely nothing else

[-] [email protected] 74 points 1 month ago

I don't get why people share twitter screenshot instead of the image itself

I can play this game as well

[-] [email protected] 10 points 1 month ago* (last edited 1 month ago)

This is a bluesky screenshot, not a twitter screenshot. This is to show, where I reposted this from.

[-] [email protected] 13 points 1 month ago* (last edited 1 month ago)

This is the web: we can attribute source with link, and the original source in markdown could be quoted without breaking accessibility. The web is built for it.

👊 TARIFF 🔥

The GREATEST, most TREMENDOUS Python package that makes importing great again!

MIGA: make importing great again. pip.

About

TARIFF is a fantastic tool that lets you impose import tariffs on Python packages. We're going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!

meme: Breaking news: 34% tariff on python imports. pypi ecosystem thrown into turmoil.

Installation

pip install tariff

Usage

import tariff

# Set your tariff rates (package_name: percentage)
tariff.set({
    "numpy": 50,     # 50% tariff on numpy
    "pandas": 200,   # 200% tariff on pandas
    "requests": 150  # 150% tariff on requests
})

# Now when you import these packages, they'll be TARIFFED!
import numpy   # This will be 50% slower
import pandas  # This will be 200% slower

Text: it's accessible!

[-] [email protected] 6 points 1 month ago

That's what I don't understand. Usually you quote the original source. What if it was a video?

[-] [email protected] 6 points 1 month ago

Use the download picture there, use the upload picture here and post a link to the source?

[-] [email protected] 9 points 1 month ago

Would it be for giving credit it to the Tweeter?

[-] [email protected] 22 points 1 month ago

Twitter users don't deserve credit.

[-] [email protected] 3 points 1 month ago

Lol who downvoted this

[-] [email protected] 5 points 1 month ago

The twitter guy didnt share the link to the source

[-] [email protected] 39 points 1 month ago

That's called snap on ubuntu

[-] [email protected] 33 points 1 month ago

This sure as fuck better check locale for US only!

[-] [email protected] 27 points 1 month ago

Importing pandas and numpy without the pd and np aliases looks weird.

[-] [email protected] 35 points 1 month ago

extra 4% tariff on aliased packages

[-] [email protected] 23 points 1 month ago
[-] [email protected] 21 points 1 month ago

Set it to -1000% and enjoy your new lightning-fast imports!

[-] [email protected] 18 points 1 month ago* (last edited 1 month ago)

This would actually be good for npm though…

[-] [email protected] 7 points 1 month ago

Are you trying to say npm doesn't implement this yet?

[-] [email protected] 3 points 1 month ago
[-] [email protected] 17 points 1 month ago

You can smuggle imports using importlib.

[-] [email protected] 9 points 1 month ago

We're gonna build a firewall and importlib is gonna pay for it!

[-] [email protected] 17 points 1 month ago

The extra time is spent mining $TRUMP

Tap for spoilerI know it’s PoS, it’s just funnier this way, don’t come at me.

[-] [email protected] 17 points 1 month ago* (last edited 1 month ago)

Pandas was always 200% slow, nothing lost there.

[-] [email protected] 7 points 1 month ago

If you can tariff penguin island you could also tariff polars, which isn't slow.

[-] [email protected] 14 points 1 month ago

Having to import my tariff management solution is a critical national security risk. Needs to be built-in. PEP soon, please?

[-] [email protected] 10 points 1 month ago

Reduce them later. Tell your boss you found a 2x speedup.

[-] [email protected] 6 points 1 month ago

What a great way to reduce external dependencies and mitigate supply chain attacks!

[-] [email protected] 6 points 1 month ago* (last edited 1 month ago)

Is there a way that I can enforce this as root to all of my users?

[-] [email protected] 5 points 1 month ago

Hopefully it maxes out your CPU and memory for no reason.

this post was submitted on 18 Apr 2025
868 points (98.1% liked)

Programmer Humor

23590 readers
864 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS