[New-bugs-announce] [issue23280] Convert binascii.{un}hexlify to Argument Clinic (fix docstrings)

Zachary Ware report at bugs.python.org
Tue Jan 20 07:07:31 CET 2015


New submission from Zachary Ware:

The Argument Clinic conversion of the binascii module left hexlify and unhexlify with bad docstrings:

    hexlify(...)
        b2a_hex($module, data, /)
        --
        
        Hexadecimal representation of binary data.
        
        The return value is a bytes object.  This function is also
        available as "hexlify()".

    unhexlify(...)
        a2b_hex($module, hexstr, /)
        --
        
        Binary data of hexadecimal representation.
        
        hexstr must contain an even number of hex digits (upper or lower case).
        This function is also available as "unhexlify()".

Attached patch fixes it, removes the note that the function is also available as itself (leaving the note on {a2b,b2a}_hex), and tests that the functions are in fact aliases.

----------
components: Extension Modules
files: binascii_clinic_fix.diff
keywords: patch
messages: 234353
nosy: serhiy.storchaka, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Convert binascii.{un}hexlify to Argument Clinic (fix docstrings)
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file37784/binascii_clinic_fix.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23280>
_______________________________________


More information about the New-bugs-announce mailing list