[issue31116] base85 z85 variant encoding

2022-01-14 Thread Matan Perelman


Change by Matan Perelman :


--
keywords: +patch
nosy: +matan1008
nosy_count: 3.0 -> 4.0
pull_requests: +28796
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30598

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31116] base85 z85 variant encoding

2020-02-15 Thread SilentGhost


Change by SilentGhost :


--
nosy: +pitrou
versions: +Python 3.9 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31116] base85 z85 variant encoding

2020-02-15 Thread Derek Wilson


Derek Wilson  added the comment:

z85 avoids all of:

` \ " ' _ , ;

Backtick and semicolon increase the number of places that z85 can be used
without issue over b85. All of these might not be as big an issue in python
as in other tools/languages but interoperability would still be improved
through the addition of z85.

- Derek

On Fri, Feb 14, 2020, 09:18 Dobatymo  wrote:

>
> Dobatymo  added the comment:
>
> base64.b85encode does not use ", ' or \ as well.
>
> That's the _b85alphabet
>
> _b85alphabet = (b"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
> b"abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~")
>
> --
> nosy: +Dobatymo
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31116] base85 z85 variant encoding

2020-02-14 Thread Dobatymo


Dobatymo  added the comment:

base64.b85encode does not use ", ' or \ as well.

That's the _b85alphabet 

_b85alphabet = (b"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
b"abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~")

--
nosy: +Dobatymo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31116] base85 z85 variant encoding

2017-08-03 Thread Derek Wilson

New submission from Derek Wilson:

Issue #17618 introduced base85 options into the base64 module including b85 and 
a85/adobe variants.

There has since been introduced a variant that is easier to work with 
specifically as it avoids " ' \ characters which avoids quoting/escaping issues 
when working with base85 literals in python, json, xml, etc.

https://rfc.zeromq.org/spec:32/Z85/

there is a reference implementation in c for which an extension could easily be 
built.

alternately it would be very easy to add a _z85alphabet etc. to the base64 
module to mirror what has been done with a/b85.

1) is there any interest in this being in the language
2) if so do we want python impl or c extension around ref impl?

--
components: Library (Lib)
messages: 299724
nosy: underrun
priority: normal
severity: normal
status: open
title: base85 z85 variant encoding
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com