[issue19730] Clinic fixes: add converters with length, version directive
Larry Hastings
report at bugs.python.org
Sat Nov 23 03:28:13 CET 2013
New submission from Larry Hastings:
Two minor changes for Argument Clinic.
* Added a "version" directive, so a programmer can require a
specific version (or better) of Clinic.
* Finished off support for all the 'legacy' converters. The ones today
were those that give off a "length" parameter. This was complicated
by finally dealing properly with the Py_buffer conversion stuff.
To properly handle length parameters, I had to support PY_SSIZE_T_CLEAN being turned off (when are we gonna throw that away?). So I added a new type to pyports.h, Py_ssize_clean_t, which is either an int or a Py_ssize_t depending on PY_SSIZE_T_CLEAN.
I've run out of gas and am going to bed. I know I have two TODO items in the diff so far; I'll deal with those tomorrow. But can I get a quick review of the rest, so I can get this in tomorrow?
----------
assignee: larry
components: Build
files: larry.misc.clinic.fixes.diff.1.patch
keywords: patch
messages: 203958
nosy: brett.cannon, larry, ncoghlan, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Clinic fixes: add converters with length, version directive
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file32790/larry.misc.clinic.fixes.diff.1.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19730>
_______________________________________
More information about the Python-bugs-list
mailing list