kosqx / better-bencode

Fast, standard compliant Bencode serialization
Other
20 stars 5 forks source link

Example fails with Python 3.6 #5

Open kannes opened 6 years ago

kannes commented 6 years ago
Python 3.6.5 (default, Apr 14 2018, 13:17:30) 
[GCC 7.3.1 20180406] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import better_bencode
>>> dumped = better_bencode.dumps(['spam', 42])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
better_bencode._fast.BencodeTypeError: type str is not Bencode serializable
szero commented 5 years ago

Hello @kannes, kinda late for the party but I added the python3 str support in this PR: #6

kannes commented 5 years ago

Sweeet!

ngosang commented 2 years ago

Same issue in Python 3.9