Baptiste Carvello <[EMAIL PROTECTED]> wrote: > > Greg Ewing a écrit : > > Jim Jewett wrote: > > > > > >>It has not yet been specified what would happen to additional > >>positional arguments that get passed in anyway. (Swallow or raise an > >>Exception?) > > > > > > I've always intended that there would be an exception. > > > If so, why not replace the lone star, whose meaning is not clear, with > "*forbidden", as in: > > def f(a, b, *forbidden, c, d=1) > > The meaning would be clearer: "remaining positional arguments are forbidden, > and > will thus raise an exception".
It seems as though you are proposing to create a pseudo-keyword embedded inside a function definition, even though 'forbidden', or really any other reasonably lengthed pseudo-keyword has two meanings. While you would say "it will raise an exception", I could say, "it's to tell us what values are forbidden for some other task. -1 on the use of _any_ pseudo-keyword inside of function definitions. - Josiah _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com