Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76dea27

Browse files
committed
Indent 'File' in memoryview example, so it is correctly highlighted
1 parent 496c53d commit 76dea27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ copying. Memory is generally interpreted as simple bytes.
23782378
bytearray(b'z123fg')
23792379
>>> v[2] = b'spam'
23802380
Traceback (most recent call last):
2381-
File "<stdin>", line 1, in <module>
2381+
File "<stdin>", line 1, in <module>
23822382
ValueError: cannot modify size of memoryview object
23832383

23842384
Notice how the size of the memoryview object cannot be changed.

0 commit comments

Comments
 (0)