[BitTorrent] bencode float support

John Hoffman theshadow at shambala.net
Tue Aug 10 16:14:35 EDT 2004


float support will never be added to the official bencode specification, 
because an important property of bencode is:
bencode(bdecode(x)) == x

This is impossible to do consistently with true floating-point values.

>The following patch by Connelly Barnes adds float bencode and bdecode
>support to bencode.py
>While bittorrent itself doesn't need float bencoding, its CVS is the
>primary location of the useful bencode module, so hopefully float
>support can become part of the bencode 'standard'.
>
>  
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the BitTorrent mailing list