We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b34dd commit edef215Copy full SHA for edef215
mypyc/test-data/irbuild-bytes.test
@@ -202,11 +202,11 @@ def f(b: bytes) -> bytes:
202
return b.rjust(8, b'0')
203
[out]
204
def f(b):
205
- b :: bytes
206
- r0 :: bytes
+ b, r0 :: bytes
207
L0:
208
- r0 = b.rjust(8, b'0')
209
- return r0
+ r0 = b'_'
+ r1 = CPyBytes_Rjust(b, 20, r0)
+ return r1
210
211
[case testBytesLjustDefault]
212
def f(b: bytes) -> bytes:
@@ -224,11 +224,11 @@ def f(b: bytes) -> bytes:
224
return b.ljust(10, b'_')
225
226
227
228
229
230
- r0 = b.ljust(10, b'_')
231
+ r1 = CPyBytes_Ljust(b, 20, r0)
232
233
[case testBytesRjustNoPad]
234
0 commit comments