[New-bugs-announce] [issue20141] Argument Clinic: broken support for 'O!'

Serhiy Storchaka report at bugs.python.org
Mon Jan 6 14:12:14 CET 2014

New submission from Serhiy Storchaka:

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.

assignee: docs at python
components: Build, Documentation
messages: 207430
nosy: docs at python, larry, serhiy.storchaka
priority: release blocker
severity: normal
status: open
title: Argument Clinic: broken support for 'O!'
type: crash
versions: Python 3.4

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list