Belle II Software development
|
Public Member Functions | |
def | __contains__ (self, value) |
def | __iter__ (self) |
def | __str__ (self) |
Class that instances can be given to an argparse.ArgumentParser.add_argument as choices keyword argument. The explicit choices stated during construction of this object are just suggestions but all other values are excepted as well.
Definition at line 32 of file utilities.py.
def __contains__ | ( | self, | |
value | |||
) |
Test for correctness of the choices. Always returns true since all choices should be valid not only the ones stated at construction of this object.
Definition at line 40 of file utilities.py.
def __iter__ | ( | self | ) |
Displays all explicit values and a final "..." to indicate more choices might be possible.
Definition at line 46 of file utilities.py.
def __str__ | ( | self | ) |
Displays all explicit values and a final "..." to indicate more choices might be possible.
Definition at line 53 of file utilities.py.