@@ -23,7 +23,7 @@ Non-ASCII Bytes
23
23
24
24
Binary
25
25
b'\\x00\\x01\\x02'
26
- u'\\x00\\x01\\x02'
26
+ u'\\x00\\x01\\x02' b'\\x00\\x01\\x02'
27
27
b'\\x00\\xe4\\xff'
28
28
29
29
Unrepresentable binary
@@ -58,18 +58,21 @@ Custom object with non-ASCII representation
58
58
MyObject(u'hyv\\xe4') u'hyv\\xe4'
59
59
60
60
Custom object with binary representation
61
- MyObject('\\x00\\x01') '\\x00\\x01'
61
+ MyObject('\\x00\\x01') b '\\x00\\x01'
62
62
63
63
List
64
64
\[]
65
- \['Hei', u'\\xe4iti ', 63, True, '\\x00' ]
65
+ \['Hei', 'äiti ', 63, True]
66
66
\[None, MyObject('xxx'), MyObject(u'\\xe4')] ['', 'xxx', u'\\xe4']
67
67
\[[0 , [[]]], [1, 2], [[True], False], 'xxx']
68
68
69
+ List with binary values
70
+ \[u'\x01', b'\x01', b''] [b'\x01', b'\x01', b'']
71
+
69
72
List-like
70
73
[Documentation] Tuples etc. are converted to lists
71
74
() []
72
- ('Hei', u'\\xe4iti ', 63, (), None) ['Hei', u'\\xe4iti ', 63, [], '']
75
+ ('Hei', 'äiti ', 63, (), None) ['Hei', 'äiti ', 63, [], '']
73
76
set(['hello']) ['hello']
74
77
(i for i in range(5)) [0, 1, 2, 3, 4]
75
78
@@ -83,20 +86,20 @@ Dictionary with non-ASCII keys and values
83
86
{u'\\xe4': u'\\xe4', u'\\u2603': u'\\u2603'}
84
87
85
88
Dictionary with non-ASCII byte keys is not supported
86
- [Documentation] FAIL GLOB: TypeError: *unhashable*
89
+ [Documentation] FAIL GLOB: TypeError: *unhashable*
87
90
[Template] Return Evaluated
88
91
{b'\\xe4': 'value'}
89
92
90
93
Dictionary with non-ASCII byte values
91
94
{'key': b'\\xe4'}
92
95
93
96
Dictionary with binary keys is not supported
94
- [Documentation] FAIL GLOB: TypeError: *unhashable*
97
+ [Documentation] FAIL GLOB: TypeError: *unhashable*
95
98
[Template] Return Evaluated
96
99
{u'\\x00': 'value'}
97
100
98
101
Dictionary with binary values
99
- {'0 ': u'\\x00', '1': b'\\xff'}
102
+ {'0 ': u'\\x00', '1': b'\\xff'} {'0': b'\\x00', '1': b'\\xff'}
100
103
101
104
Dictionary with non-string keys and values
102
105
[Documentation] XML-RPC supports only strings as keys so must convert them
0 commit comments