[issue9996] binascii should convert unicode strings

2010-10-01 Thread R. David Murray
R. David Murray added the comment: Since the issue/patch is about binascii, and I agree with Martin that binascii should continue to do bytes-to-bytes transforms (especially since that is its most common use case, IMO), I'm going to close this issue. Please open the discussion on python-dev

[issue9996] binascii should convert unicode strings

2010-09-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1 on this patch; I think any change must get consensus on python-dev first, and there is no point in resolving this in the bug tracker. If no agreement can be found (which is actually likely), a PEP needs to be written. My personal favorite would be to a) l

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Regardless of the various arguments, I think it is too late to break compatibility again, by disallowing bytes input, or changing the output type. What we could do is allow str arguments to a2b_ functions, with the restriction that the argument must not contai

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +flox, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Arnon Yaari
New submission from Arnon Yaari : binascii is currently bytes-only, although the "a" in a2b\b2a should refer to unicode strings. This patch fixes all a2b functions to take str type and all b2a functions to return str types. This was discussed several times, for example: http://www.gossamer-thre