[Python-ideas] IntFlags

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 5 21:39:11 CET 2015


Luciano Ramalho wrote:
> The problem is that a set is by definition unordered, but the position
> of the bits in BitFlags is crucial, so the name BitSet may not give
> the right idea.

I think the "Bit" part of BitSet covers that. It's
a set that's represented using bits, and bits have
a position.

Also, the elements of the set are conceptually ints,
and ints are ordered.

-- 
Greg


More information about the Python-ideas mailing list