Login
You're viewing the social.afront.org public feed.
  • Stylusstylus
    Sep 10, 2026, 12:27 AM

    @artemist reminded me how cursed jq was so I made some cursed python -- a little wrapper called curse that can be used on a unary function to make it work with | (pipe) in addition to its regular call signature.

    abs = curse(abs)
    print(abs)
    print(abs(-3))
    print(-3 | abs)
    print([1, -3, 9, -27] | abs)

    of course it's very rude to squat on such a general identifier as "curse" so please don't look for it on pypi :rofl:

    jepler.grebedoc.dev/junkdrawer

    💬 0🔄 1⭐ 2