This function dumps a python object as a tnetstring and writes it to the given file.
(value: TSerializable, file_handle: BinaryIO)
| 60 | |
| 61 | |
| 62 | def dump(value: TSerializable, file_handle: BinaryIO) -> None: |
| 63 | """ |
| 64 | This function dumps a python object as a tnetstring and |
| 65 | writes it to the given file. |
| 66 | """ |
| 67 | file_handle.write(dumps(value)) |
| 68 | |
| 69 | |
| 70 | def _rdumpq(q: collections.deque, size: int, value: TSerializable) -> int: |