[New-bugs-announce] [issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__
Zachary Ware
report at bugs.python.org
Mon Feb 10 21:28:26 CET 2014
New submission from Zachary Ware:
Builtins with a valid signature embedded in the docstring, but with no other docstring content are not picked up by the __text_signature__ getter because the docstring ends with ")\n--" rather than ")\n--\n\n". The attached patch adjusts clinic.CLanguage.docstring_for_c_string to make sure that the rendered docstring ends in "--\n\n" rather than "--".
The result is a correct __text_signature__ and a __doc__ of ''.
----------
components: Demos and Tools
files: clinic_sig_no_docstring.diff
keywords: patch
messages: 210864
nosy: larry, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Argument Clinic: functions with valid sig but no docstring have no __text_signature__
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file34025/clinic_sig_no_docstring.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20586>
_______________________________________
More information about the New-bugs-announce
mailing list