On Wed, Jun 17, 2015, at 20:14, Chris Angelico wrote:
Mostly. That would imply that object is a mandatory parameter, which
AIUI isn't the case for Steven's edir. The downside of this kind of
signature is that it's hard to show the parameters that have unusual
defaults (either sentinel objects
Laura Creighton l...@openend.se writes:
In a message of Thu, 18 Jun 2015 10:04:46 +1000, Ben Finney writes:
Since the introduction of keyword-only arguments in Python functions,
the question arises of how to communicate this in documentation.
I suppose it is way too late to scream I hate
In a message of Thu, 18 Jun 2015 10:04:46 +1000, Ben Finney writes:
Since the introduction of keyword-only arguments in Python functions,
the question arises of how to communicate this in documentation.
I suppose it is way too late to scream I hate keyword-only arguments!
The lone asterisk
On Wed, Jun 17, 2015 at 6:04 PM, Ben Finney ben+pyt...@benfinney.id.au wrote:
Steven D'Aprano st...@pearwood.info writes:
The full signature is:
edir([object [, glob=''] [, dunders=True] [, meta=False]])
All four arguments are optional, and dunders and meta are
keyword-only.
The official
Steven D'Aprano st...@pearwood.info writes:
The full signature is:
edir([object [, glob=''] [, dunders=True] [, meta=False]])
All four arguments are optional, and dunders and meta are
keyword-only.
The official documentation seems to prefer this style::
edit(object, glob='', *,
On Thu, Jun 18, 2015 at 10:04 AM, Ben Finney ben+pyt...@benfinney.id.au wrote:
Steven D'Aprano st...@pearwood.info writes:
The full signature is:
edir([object [, glob=''] [, dunders=True] [, meta=False]])
All four arguments are optional, and dunders and meta are
keyword-only.
The