from enum import Flag, verify, NAMED_FLAGS
@verify(NAMED_FLAGS)
class Color(Flag):
RED = -1 # 0
GREEN = 2
BLUE = 4
WHITE = 9
NEON = 6
In this example, it is working good, if RED has value of 0, but is resulting in Memory Error, if its value is changed to -1