Walter Dörwald wrote: > I can't understand why we can't have a new keyword for decorators. > If I remember correctly the introduction of yield didn't result > in such a public outcry. We'd have to change our programs once > if a variable names collides with the new keyword, but that's better > than having to look at @s for the rest of our Python days. Not such a large outcry, but lots of us were concerned about "having to look inside the function for 'yield' to determine if it were a generator or a function" and were calling for a 'gen' or 'generator' keyword. Strangely enough, exactly the *opposite* argument is now being used to prevent syntaxes such as: def func (args): @decorator as was used then to allow: def func (args): yield value Tim Delaney
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