Re:Bounter: A Python counter that uses limited memory regard...
by Radim on Saturday October 21, 2017 @08:36AM
(#15521662)
Hi there, thanks for the constructive comments!
They actually are completely different classes internally. The ‘bounter’ function is just a convenience wrapper (factory). For power users, the internal classes offer more control and parameters.
If you have any suggestions / concerns, please raise an issue on github. It’s a new library, we’re looking for feedback!
I don't know about you, but a boolean flag completely changing the behavior of a collection definitely violates least surprise to me. They should be different classes with descriptive names, IMO.