[Python-Dev] Suggesting '.' decorators (PEP318)
Chris King
colanderman at gmail.com
Sat Aug 7 18:57:48 CEST 2004
On Fri, 6 Aug 2004 21:31:19 -0400, Raymond Hettinger <python at rcn.com> wrote:
> > > I haven't seen this mentioned, so I'm going to throw in my
> suggestion.
> > >
> > > The following makes sense to me, uses previously invalid syntax, and
> > > uses the '.' punctuation in a way similar to existing/proposed
> usage:
> >
> > -1. This violates my "syntax should not look like grit" rule.
>
> Also, the dot prefix should probably be kept free in case a WITH
> statement is ever introduced.
Same here -- I'd rather see .foo at function level (i.e. not nested in
a with block) provide true function attributes, not decorators.
More information about the Python-Dev
mailing list