Author serhiy.storchaka
Recipients docs@python, larry, serhiy.storchaka
Date 2014-01-06.13:12:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
First, the documentation says that syntax for 'O!' conversion is
object(type='name_of_Python_type'), but actually the type argument should be the name of C structure which represents Python type. I.e. object(type='list') is rejected, and object(type='PyList_Type') is accepted.

Second, from this declaration

module spam

    items: object(type='PyList_Type')


Argument Clinic generates following parsing code:

    if (!PyArg_ParseTuple(args,
        PyList_Type, &items))
        goto exit;

It is wrong, should be &PyList_Type.
Date User Action Args
2014-01-06 13:12:14serhiy.storchakasetrecipients: + serhiy.storchaka, larry, docs@python
2014-01-06 13:12:14serhiy.storchakasetmessageid: <>
2014-01-06 13:12:14serhiy.storchakalinkissue20141 messages
2014-01-06 13:12:13serhiy.storchakacreate