[Python-ideas] keyword arguments everywhere (stdlib) - issue8706
solipsis at pitrou.net
Sun Mar 4 15:00:59 CET 2012
On Sun, 04 Mar 2012 14:42:30 +1100
Steven D'Aprano <steve at pearwood.info> wrote:
> >>> Anyway, I now think that adding a built-in @positional(N) decorator
> >>> makes the most sense since it doesn't require changes to the parser.
> >> -1 on a built-in for that. The functools module would probably be a
> >> good recipient (assuming the decorator is useful at all, of course).
> > TBH, I've never gotten the hang of functools. It seems mostly a refuge
> > for things I don't like; so @positional() doesn't belong there. :-)
> What, you don't like @wraps? Astonishing! :-)
@wraps is actually quite useful. functools contains other decorators
such as @lru_cache. I think it's the right place for little-used things
More information about the Python-ideas