sergi, to python
@sergi@floss.social avatar

A Deep Dive Into Python's functools.wraps Decorator
https://jacobpadilla.com/articles/Functools-Deep-Dive

frankel, to python
@frankel@mastodon.top avatar
schizanon, to javascript
@schizanon@mas.to avatar

It's super cool that is supporting standard , but I'm still not going to use them!

Maybe one day when they don't need to be transpiled anymore.

scy, to python
@scy@chaos.social avatar

Instead of writing complicated try-catch constructs to things, using auto-retrying function certainly changed my life to the better.

This is using & the library https://pypi.org/project/backoff/ to retry generating a unique token, in the rare event that we chose a token that’s already in the database. On an IntegrityError, the function will “call itself” again.

(Event hooks & exponential backoff are available too.)

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