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 <rep...@bugs.python.org> <http://bugs.python.org/issue20586> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com