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?)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4