[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!

Yahoo! Groups Links

<*> To visit your group on the web, go to:

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

<*> Your use of Yahoo! Groups is subject to:

More information about the BitTorrent mailing list