This profile is from a federated server and may be incomplete. Browse more on the original instance.

asignz, (edited )

Just use 'strtobool' from distutils to parse str as bool much better than reinventing the wheel https://docs.python.org/3.11/distutils/apiref.html#distutils.util.strtobool

edit: ok it uses if internally so without if you could do it with match statement

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines