[Python-Dev] cpython: PyUnicode_FromKindAndData() raises a ValueError if the kind is unknown

Benjamin Peterson benjamin at python.org
Sun Oct 2 17:46:16 CEST 2011


2011/10/2 Georg Brandl <g.brandl at gmx.net>:
> On 10/02/11 01:14, victor.stinner wrote:
>> http://hg.python.org/cpython/rev/9124a00df142
>> changeset:   72573:9124a00df142
>> parent:      72571:fa0b1e50270f
>> user:        Victor Stinner <victor.stinner at haypocalc.com>
>> date:        Sat Oct 01 23:48:37 2011 +0200
>> summary:
>>   PyUnicode_FromKindAndData() raises a ValueError if the kind is unknown

Also, could I remind you that a better commit message is probably
"make PyUnicode_FromKindAndData raise a ValueError if the kind is
unknown".

Moreover, I wonder is the kind should be an enumeration, then people
would get a warning at least.



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list