[Python-Dev] Status of the Argument Clinic DSL (original) (raw)

Brett Cannon brett at python.org
Thu Aug 4 19:00:09 EDT 2016


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

On Thu, Aug 4, 2016 at 2:19 PM, Larry Hastings <larry at 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.textsignature '($module, /, src, dst, *, srcdirfd=None, dstdirfd=None)' ? What does the "$module, /," part mean?

Don't remember what the $module means but the / means positional-only arguments. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160804/fc904617/attachment.html>



More information about the Python-Dev mailing list