-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add serialize method and bencode (#8)
* Add serialize method and bencode Serialize should transform objects into a simple Python structure and bencode should take that structure and turn it into binary. There is no deserialization yet. * Add more serialization functions and helper * Add more serialization functions * Move type= to _serialize function * Implement default serializer for only Object fields This makes our lives easier. * Add another end-to-end serialization test * Add serialize function to stdlib * Update for Python3.8 support
- Loading branch information
1 parent
e62b106
commit c55f1f7
Showing
1 changed file
with
203 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters