Movatterモバイル変換


[0]ホーム

URL:


homepage

Message337613

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorncoghlan
Recipientsbenjamin.peterson, berker.peksag, docs@python, emily.zhao, josh.r, jwilk, larry, lys.nikolaou, ncoghlan, noah.haasis, pradyunsg, rhettinger, veky, zach.ware
Date2019-03-10.11:46:02
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1552218362.82.0.405955706768.issue21314@roundup.psfhosted.org>
In-reply-to
Content
I went ahead and merged Lysandros's new FAQ entry (Thank you Lysandros!), as having some level of documentation for this notation is markedly better than the previous "none at all", and the PR added cross-references from the builtins and inspect module docs in addition to adding the FAQ itself.However, I'm not closing the issue yet as:- the exact wording could likely stand to be tweaked a bit (in particular, I'm not sure it's a good idea to referencePEP 570 from the FAQ entry)- we may want to enhance pydoc itself to explain the notation inline (e.g. by appending a footer saying "Note: parameters to the left of ``/`` entries are positional only and cannot be passed by name" after the docstring being displayed when positional only parameters are found, and "Note: parameters to the right of ``*`` and ``*name`` entries are keyword only and can only be passed by name" when keyword only parameters are found)- we may want to file a follow-up issue proposing that `pydoc` go back to either not marking positional-only parameters at all, or marking them differently (e.g. with "Note: *x*, *y*, and *z* are positional only parameters that cannot be passed by name" after the individual callable docstrings)
History
DateUserActionArgs
2019-03-10 11:46:02ncoghlansetrecipients: +ncoghlan,rhettinger,larry,benjamin.peterson,jwilk,docs@python,berker.peksag,zach.ware,pradyunsg,josh.r,veky,emily.zhao,lys.nikolaou,noah.haasis
2019-03-10 11:46:02ncoghlansetmessageid: <1552218362.82.0.405955706768.issue21314@roundup.psfhosted.org>
2019-03-10 11:46:02ncoghlanlinkissue21314 messages
2019-03-10 11:46:02ncoghlancreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp