Docs: Add bz2 usage examples (GH-13258)
* Docs: Add bz2 usage examples
- Adds an "Examples of usage" section inspired by the one
found in the gzip docs
- Corrects the descriptions for ``compresslevel`` and ``data``:
- ``compresslevel`` must be an `int`, not any number. For
instance, passing a float will raise ``TypeError``
- Notes that `data` must be bytes-like B
Brad committed
be6939fb02e65b56c45377940b339d150b124d05
Parent: 95da83d
Committed by Gregory P. Smith <greg@krypto.org>
on 5/13/2019, 6:09:49 PM