Terry Reedy wrote: > my way to call your example (given the data in separate variables): > make_person(name, age, phone, location) > your way: > make_person(name=name, age=age, phone=phone, location = location)
For situations like that, I've sometimes thought it would be useful to be able to say something like make_person(=name, =age, =phone, =location) > It is a feature of Python that arguments can usually be matched to > parameters either by position or name, as the *caller* chooses. Except that the caller doesn't always get that option even now, if the callee has chosen to use *args or **kwds. So I wouldn't consider that a very strong argument. > And they need not; it is right there in front of them. As for writers, > modern IDEs should try to list the parameter signature upon typing 'func('. Which is extremely difficult for an IDE to do without static type information. -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com