News for hackers. Stuff that matters.
Re:Pope tempted by Python. Signs off on coding scheme for kids by graemep on Sunday October 29, 2023 @03:52AM (#38056607)
Taking the joke a bit too seriously, but that is a statement of moralistic therapeutic deism, not Christianity.

Corrected code.

  from behaviour import repentance
  from afterlife import Heaven, Hell, Limbo

  if person.is_baptised:
     if (person.state == repentance):
        return Heaven
     else:
       return Hell  # FIXME define Hell
  else:
    # TODO I think we need something with Limbo here
    return None
Re:Pope tempted by Python. Signs off on coding scheme for kids by Yoric on Sunday October 29, 2023 @11:22AM (#38059403)
Well, if that code was written at any point after the 12th century, you need to add Purgatory. Also, for Limbo, you need to never have heard of the Catholic Church, so you probably need some kind of information tainting.