2015-07-05 18:05:44 +00:00
|
|
|
<class 'example.EMyEnumeration'>
|
|
|
|
EMyEnumeration.EFirstEntry
|
|
|
|
EMyEnumeration.ESecondEntry
|
|
|
|
EMyEnumeration.EFirstEntry
|
2015-10-01 14:48:34 +00:00
|
|
|
test_function()
|
2015-07-05 18:05:44 +00:00
|
|
|
False
|
2015-10-01 14:48:34 +00:00
|
|
|
test_function(7)
|
2015-07-05 18:05:44 +00:00
|
|
|
3.5
|
2015-10-01 14:48:34 +00:00
|
|
|
test_function(enum=1)
|
2015-07-05 18:05:44 +00:00
|
|
|
None
|
2015-10-01 14:48:34 +00:00
|
|
|
test_function(enum=2)
|
2015-07-05 18:05:44 +00:00
|
|
|
None
|
2016-01-24 13:05:12 +00:00
|
|
|
enum->integer = 2
|
|
|
|
integer->enum = EMyEnumeration.ESecondEntry
|
|
|
|
A constant = 14
|
2016-01-17 21:36:41 +00:00
|
|
|
<class 'example.EMode'>
|
2015-07-05 18:05:44 +00:00
|
|
|
EMode.EFirstMode
|
|
|
|
EMode.EFirstMode
|
2015-10-01 14:48:34 +00:00
|
|
|
Example4::test_function(enum=1)
|
2016-01-24 13:05:12 +00:00
|
|
|
Example4::test_function(enum=1)
|
|
|
|
Example4::test_function(enum=1)
|
|
|
|
Equality test 1: True
|
|
|
|
Example4::test_function(enum=1)
|
|
|
|
Example4::test_function(enum=1)
|
|
|
|
Inequality test 1: False
|
|
|
|
Example4::test_function(enum=1)
|
|
|
|
Example4::test_function(enum=2)
|
|
|
|
Equality test 2: False
|
|
|
|
Example4::test_function(enum=1)
|
|
|
|
Example4::test_function(enum=2)
|
|
|
|
Inequality test 2: True
|
|
|
|
Example4::test_function(enum=1)
|
|
|
|
Example4::test_function(enum=2)
|
|
|
|
Example4::test_function(enum=1)
|
|
|
|
Example4::test_function(enum=2)
|
|
|
|
Hashing test = {EMode.EFirstMode: 3, EMode.ESecondMode: 4}
|
2016-01-17 21:36:37 +00:00
|
|
|
bytes[0]=1
|
|
|
|
bytes[1]=0
|
|
|
|
bytes[2]=2
|
|
|
|
bytes[3]=0
|