I noticed that the IntFlag enums VerifyFlags and Options from the ssl module are not continuous and contain aliases to (partially) absent members, i.e. "false" aliases.
This gives inconsistencies in flag iteration:
With that, enum.show_flag_values also cannot really be used anymore.
I found these related issues:
The behavior shown above kind of collides with the achievement for simplicity mentioned in #72212 - and also confused me heavily.
@tiran @ethanfurman What do you think?
I noticed that the
IntFlagenumsVerifyFlagsandOptionsfrom thesslmodule are not continuous and contain aliases to (partially) absent members, i.e. "false" aliases.This gives inconsistencies in flag iteration:
overshooting
VerifyFlagsOptionsfalse aliases
VerifyFlagsOptionsmissing members due to being false aliases
VerifyFlagsand consequently
Optionsand resulting implications analogous to
VerifyFlags.With that,
enum.show_flag_valuesalso cannot really be used anymore.I found these related issues:
The behavior shown above kind of collides with the achievement for simplicity mentioned in #72212 - and also confused me heavily.
@tiran @ethanfurman What do you think?