Lines Matching refs:Animal
455 >>> Animal = Enum('Animal', 'ANT BEE CAT DOG')
456 >>> Animal
457 <enum 'Animal'>
458 >>> Animal.ANT
459 <Animal.ANT: 1>
460 >>> Animal.ANT.value
462 >>> list(Animal)
463 [<Animal.ANT: 1>, <Animal.BEE: 2>, <Animal.CAT: 3>, <Animal.DOG: 4>]
475 assignment to :class:`Animal` is equivalent to::
477 >>> class Animal(Enum):
494 >>> Animal = Enum('Animal', 'ANT BEE CAT DOG', module=__name__)
507 >>> Animal = Enum('Animal', 'ANT BEE CAT DOG', qualname='SomeData.Animal')