Re: [Python-Dev] Problems with hex-conversion functions

2010-10-01 Thread Nick Coghlan
On Sat, Oct 2, 2010 at 5:17 AM, Arnon Yaari wrote: > Hello again. I submitted two patches to resolve the issues from my first > post. > > Patch 9951 - implement bytes.hex (http://bugs.python.org/issue9951) > Patch 9996 - fix input and output of binascii functions > (http://bugs.python.org/issue999

Re: [Python-Dev] Problems with hex-conversion functions

2010-10-01 Thread Arnon Yaari
Hello again. I submitted two patches to resolve the issues from my first post. Patch 9951 - implement bytes.hex (http://bugs.python.org/issue9951) Patch 9996 - fix input and output of binascii functions ( http://bugs.python.org/issue9996) Fix #1 - patch 9951 implements bytes.hex Fix #2 - this is

Re: [Python-Dev] Problems with hex-conversion functions

2010-09-23 Thread Nick Coghlan
On Thu, Sep 23, 2010 at 7:31 PM, Ender Wiggin wrote: > Sorry for the late reply. I would really like to see this fixed. > >>> Or we [...] deprecate binascii.(un)hexlify(). > ... >>> binascii is the legacy approach here, so if anything was to go, those >>> functions would be it > ... > > I'm not en

Re: [Python-Dev] Problems with hex-conversion functions

2010-09-23 Thread Terry Reedy
On 9/23/2010 5:31 AM, Ender Wiggin wrote: I think I have the skills to learn and fix the code itself, but I don't have the time and I am unfamiliar with the process of submitting patches and getting Anyone can submit a patch at bugs.python.org. The process of getting one approved includes res

Re: [Python-Dev] Problems with hex-conversion functions

2010-09-23 Thread Ender Wiggin
Sorry for the late reply. I would really like to see this fixed. >> Or we [...] deprecate binascii.(un)hexlify(). ... >> binascii is the legacy approach here, so if anything was to go, those functions would be it ... I'm not entirely convinced binascii is the legacy approach. What makes this modu

Re: [Python-Dev] Problems with hex-conversion functions

2009-09-05 Thread Nick Coghlan
Brett Cannon wrote: >> To fix these issues, three changes should be applied: >> 1. Deprecate bytes.fromhex. This fixes the following problems: >>#4 (go with option B and remove the function that does not allow bytes >> input) >>#2 (the binascii functions will be the only way to "do it") >>

Re: [Python-Dev] Problems with hex-conversion functions

2009-09-05 Thread Brett Cannon
On Sat, Sep 5, 2009 at 14:26, Ender Wiggin wrote: > Hello everyone. > > I see several problems with the two hex-conversion function pairs that > Python offers: > 1. binascii.hexlify and binascii.unhexlify > 2. bytes.fromhex and bytes.hex > > Problem #1: > bytes.hex is not implemented, although it w

[Python-Dev] Problems with hex-conversion functions

2009-09-05 Thread Ender Wiggin
Hello everyone. I see several problems with the two hex-conversion function pairs that Python offers: 1. binascii.hexlify and binascii.unhexlify 2. bytes.fromhex and bytes.hex Problem #1: bytes.hex is not implemented, although it was specified in PEP 358. This means there is no symmetrical functi