You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how we should be handling types not listed in the bencode specification. Internal type conversions that aren't reversible might not be expected by some users (bool and tuple also have this issue).
Moving forward maybe there should be a flag or separate method to use type conversions?
expected: b'0:'
Not sure encoding None to an empty string is the best option here. Would b'i0e' (0, False) be a better fit?
Version:
bencode.py==2.1.0
Test:
expected:
b'0:'
actual:
The text was updated successfully, but these errors were encountered: