(original) (raw)



On Thu, 4 Aug 2016 at 15:47 Alexander Belopolsky <alexander.belopolsky@gmail.com> wrote:

On Thu, Aug 4, 2016 at 2:19 PM, Larry Hastings <larry@hastings.org> wrote:
AFAIK the Clinic DSL can handle all of Python's C extensions. I have no plans to "revise the whole approach"; if someone else does I haven't heard about it.

I was just wondering that with so much effort to bring typing to the mainstream, a more "pythonic" DSL may emerge for describing the signatures of functions in C modules.

BTW, is there any document describing the syntax of "text signatures" such as:

>>> os.rename.\_\_text\_signature\_\_
'($module, /, src, dst, \*, src\_dir\_fd=None, dst\_dir\_fd=None)'

?

What does the "$module, /," part mean?

Don't remember what the $module means but the / means positional-only arguments.