Lemmy.org
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MHLoppy@fedia.io to Programmer Humor@programming.dev · 2 months ago

isInHell = 'true'

fedia.io

external-link
message-square
83
fedilink
684
external-link

isInHell = 'true'

fedia.io

MHLoppy@fedia.io to Programmer Humor@programming.dev · 2 months ago
message-square
83
fedilink

Original post: hachyderm.io (Mastodon)

  • Trailblazing Braille Taser@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    8
    ·
    2 months ago

    Given the warning about capitalization, the best possible case is that they’re using ast.literal_eval() rather than throwing untrusted input into eval().

    Err, I guess they might be comparing strings to ‘True’ and are choosing to be really strict about capitalization for some reason.

    • MajorHavoc@programming.dev
      link
      fedilink
      arrow-up
      12
      ·
      2 months ago

      Yeah. Maybe .to_lower() is really expensive in their environment, lol.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 777 users / day
  • 4.59K users / week
  • 9.26K users / month
  • 13.1K users / 6 months
  • 9 local subscribers
  • 23.1K subscribers
  • 528 Posts
  • 7.47K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org