treyhunner,
@treyhunner@mastodon.social avatar

Python 3.7 reached the end of its life today. 🎉

Here are some Python 3.8 features you can now embrace:

• cached_property
• self-documenting f-string expressions
• walrus operator
• positional-only args
• passing dictionaries to reversed()

A few other favorites of mine:

• math.‍prod (like sum, but for multiplication)
• clearing the REPL with globals().clear()... this would break things in Python 3.7!
• argparse's add_argument method has an "extend" action

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