<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 03/25/2018 09:58 AM, Serhiy
Storchaka wrote:<br>
</div>
<blockquote type="cite" cite="mid:p98kb4$ktu$2@blaine.gmane.org">25.03.18
19:47, Dave Halter пише:
<br>
<blockquote type="cite">Is there a way though in which the
__text_signature__ could contain
<br>
the information `-> str` or do we need to engineer that
first?
<br>
</blockquote>
<br>
There is no such way currently.
<br>
</blockquote>
<br>
<br>
Are you sure? I'm pretty sure Argument Clinic signatures support
"return converters", which are emitted in the text signature as a
return annotation. See the section "Using a return converter" in
Doc/howto/clinic.rst.<br>
<br>
What appears to be lacking is a "return converter" that handles
strings. I don't know how easy or hard it would be to write one--I
haven't thought about Argument Clinic in years. However, the
DecodeFSDefault() returns a string type, with some extra implied
constraints on the value I think. So my guess is, it wouldn't be
too hard to add a simple "str" return converter.<br>
<br>
<br>
Cheers,<br>
<br>
<br>
<i>/arry</i><br>
</body>
</html>