Browse Source

Bytes

pull/10/head
Jure Šorn 5 years ago
parent
commit
72edaacbac
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -869,6 +869,7 @@ Bytes
**Bytes object is immutable sequence of single bytes. Mutable version is called bytearray.**
```python
<bytes> = b'<str>'
<int> = <bytes>[<index>]
<bytes> = <bytes>[<slice>]
<bytes> = b''.join(<coll_of_bytes>)
@ -876,7 +877,6 @@ Bytes
### Encode
```python
<bytes> = b'<str>'
<bytes> = <str>.encode(encoding='utf-8')
<bytes> = <int>.to_bytes(length, byteorder='big|little', signed=False)
<bytes> = bytes.fromhex(<hex>)

Loading…
Cancel
Save