baumanno,

I wrote some words on how to implement a collections.Counter in #python 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
  • python
  • khanakhh
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • megavids
  • GTA5RPClips
  • Durango
  • normalnudes
  • cubers
  • tacticalgear
  • cisconetworking
  • tester
  • modclub
  • provamag3
  • anitta
  • Leos
  • JUstTest
  • lostlight
  • All magazines