[New-bugs-announce] [issue23920] Should Clinic have "nullable" or types=NoneType?

Larry Hastings report at bugs.python.org
Sun Apr 12 06:24:21 CEST 2015

New submission from Larry Hastings:

I was staring at Clinic tonight and a thought came to me.  We could express "nullable=True" as "types='NoneType'".  For example, the converter for 'Z' could change from



    Py_UNICODE(types="str NoneType")

There Should Be Only One Way To Do It.  Should we get rid of "nullable=True" and use types=NoneType instead?

FWIW it's pretty arbitrary either way; the arguments to the converter are just telling the converter how to generate the code.  I don't think it would make any difference in the converter's code--either way is fine.

assignee: larry
components: Argument Clinic
messages: 240534
nosy: larry, serhiy.storchaka, zach.ware
priority: normal
severity: normal
stage: test needed
status: open
title: Should Clinic have "nullable" or types=NoneType?
type: enhancement
versions: Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list