baumanno

@baumanno@hachyderm.io

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

baumanno, to python

I wrote some words on how to implement a collections.Counter in that can be compared to scalar values.

To me, this is pretty cool, as it allows you to filter the counts based on a threshold. For instance, ComparableCounter(...) > 10 would result in a new collection containing only values whose count is above 10.

Any feedback is gladly received! 😀

https://baumanno.de/2024/05/a-comparable-counter-for-python/

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