From: Guido van Rossum <gu...@python.org>
Date: Thu, 20 Sep 2012 08:52:47 -0700
Local: Thurs, Sep 20 2012 11:52 am
Subject: Re: [Python-Dev] TypeError: f() missing 1 required positional argument: 'x'
On Thu, Sep 20, 2012 at 7:12 AM, Benjamin Peterson <benja...@python.org> wrote:
No -- Mark's point is that (even given this syntax) you *could* pass
> 2012/9/20 Mark Dickinson <dicki...@gmail.com>: >> Thoughts? > I tried to define the error messages in terms of the callee's
> def f(a, b, c, *args, d):
> a, b, and c are positional. Hence the "positional" in error messages.
them using keywords. I think Brett's got it right and we should just refer to a and b as
Of course, in a specific call, we can continue to refer to positional
Maybe this is also a good time to start distinguishing between
> As you noted in your next message, keyword-only arguments need to be
-- > distinguished from these "positional" arguments somehow. Maybe it > helps to think of "positional" to mean "the only formals you can pass > to with position" (excepting variadic ones). > I'm certainly open to suggestions.
--Guido van Rossum (python.org/~guido) _______________________________________________ Python-Dev mailing list Python-...@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/dev-python%2Bgarchi... You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||