Binary Sort on Python List __xor__

Evan Schalton evan.schalton at gmail.com
Sat May 30 20:54:19 EDT 2020


@MRAB,

Yes -- good point, it should be the __and__ operator.

do I need a new class? No, but based on this use case and other formatting techniques adding a filter method to the list class that takes in either bit mask or bool list would streamline a lot of code and not change any existing functionality


More information about the Python-list mailing list