Re: [Python-Dev] Base-96

2008-08-02 Thread Guido van Rossum
On Sat, Aug 2, 2008 at 11:57 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > That was an April Fool's RFC. See also http://en.wikipedia.org/wiki/April_Fools%27_Day_RFC -- it has a ton of these. Great fun reading through some of them on an idle Saturday afternoon. :-) -- --Guido van Rossum (hom

Re: [Python-Dev] Base-96

2008-08-02 Thread Guido van Rossum
On Sat, Aug 2, 2008 at 10:37 AM, Josiah Carlson <[EMAIL PROTECTED]> wrote: > On Sat, Aug 2, 2008 at 10:09 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> Josiah Carlson wrote: >>> The standard high-bit-density encoding past base-64 is base-85 >>> (http://en.wikipedia.org/wiki/Ascii85), which en

Re: [Python-Dev] Base-96

2008-08-02 Thread Josiah Carlson
On Sat, Aug 2, 2008 at 10:09 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Josiah Carlson wrote: >> The standard high-bit-density encoding past base-64 is base-85 >> (http://en.wikipedia.org/wiki/Ascii85), which encodes 4 binary bytes >> as 5 ascii bytes, versus 3 binary bytes as 4 ascii bytes

Re: [Python-Dev] Base-96

2008-08-02 Thread Martin v. Löwis
Josiah Carlson wrote: > The standard high-bit-density encoding past base-64 is base-85 > (http://en.wikipedia.org/wiki/Ascii85), which encodes 4 binary bytes > as 5 ascii bytes, versus 3 binary bytes as 4 ascii bytes. It works, > is an RFC somewhere, RFC 1924, published on April 1, 1996, to short

Re: [Python-Dev] Base-96

2008-08-02 Thread Josiah Carlson
The standard high-bit-density encoding past base-64 is base-85 (http://en.wikipedia.org/wiki/Ascii85), which encodes 4 binary bytes as 5 ascii bytes, versus 3 binary bytes as 4 ascii bytes. It works, is an RFC somewhere, ... and maybe should find it's way into the Python standard library's codec p

Re: [Python-Dev] Base-96

2008-08-02 Thread Kless
It's true, I didn't pay attention to that. So the next encoding possible would of base-128 (7-bits encoding), althought I don't know if were possible since that there would than use non-printable characters and could change the text (by use of chars. as Backspace or Delete). On 2 ago, 03:21, Stev

Re: [Python-Dev] Base-96

2008-08-01 Thread Steve Holden
Guido van Rossum wrote: This sounds more like something to bring up in [EMAIL PROTECTED] Also, rather than being vague about the motivation ("would be very interesting", you ought to think of a realistic use case. For example, are there existing encodings of binary data using base-96? I'm not awa

Re: [Python-Dev] Base-96

2008-08-01 Thread Guido van Rossum
This sounds more like something to bring up in [EMAIL PROTECTED] Also, rather than being vague about the motivation ("would be very interesting", you ought to think of a realistic use case. For example, are there existing encodings of binary data using base-96? I'm not aware of any. On Fri, Aug 1,

[Python-Dev] Base-96

2008-08-01 Thread Kless
I think that would be very interesting thay Python would have a module for working on base 96 too. [1] It could be converted to base 96 the digests from hashlib module, and random bytes used on crypto (to create the salt, the IV, or a key). As you can see here [2], the printable ASCII characters