satya,
@satya@mas.to avatar

TIL, after 22 years of using Python, that str.startswith can take a tuple of prefixes.

Yhg1s,
@Yhg1s@social.coop avatar

@satya Don't worry, that's only a thing since Python 2.5, so that's 18 years, not 22 😇

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • khanakhh
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • osvaldo12
  • mdbf
  • Youngstown
  • cisconetworking
  • slotface
  • rosin
  • thenastyranch
  • ngwrru68w68
  • kavyap
  • ethstaker
  • JUstTest
  • tacticalgear
  • modclub
  • cubers
  • Leos
  • everett
  • GTA5RPClips
  • Durango
  • anitta
  • normalnudes
  • provamag3
  • tester
  • megavids
  • lostlight
  • All magazines