[Python-Dev] Re: new syntax for wrapping (PEP 318)
Michael Hudson
mwh at python.net
Thu Feb 26 07:08:01 EST 2004
Pete Shinners <pete at shinners.org> writes:
> I'm not too concerned about the syntax. All current proposals weigh
> about equal to me. Although I don't believe "as" makes documentation
> lookup much easier.
>
> I think this feature will be another one of those positive changes
> that effects the entire way python is used. The kind of thing like
> iterators, string methods, etc. I've been playing with the idea for
> awhile and can throw out some extra use cases.
>
> Some of these may even be bad ideas apon further thought, but it's
> something to ponder.
Actually, I think one of the downsides to the function decorator
proposals, or at least a point that needs thought, is some of the
loony things you can do with it :-) (and, like you say, the fact that
this might well turn out to be a much used change).
def pi_over_two() [apply]: return math.pi/2
Cheers,
mwh
--
A difference which makes no difference is no difference at all.
-- William James (I think. Reference anyone?)
More information about the Python-Dev
mailing list