> >Can it? I must've missed that. It sure sounds like an incredible > >hack -- how to you prevent the default behavior that the list of > >decorators is thrown away by the interpreter? > > By using sys.settrace (and a careful tracer implementation to avoid > interfering with debuggers or other active tracers): Ah, yuck. Not an acceptable solution. And it doesn't let you write [classmethod] -- you have to wrap the 'classmethod' in something relatively ugly. But let's move on. > >Because that syntax received significant boohs when I presented it at > >EuroPython. > > And "@" *didn't*??? Ah well. C'est la vie. Indeed it didn't. --Guido van Rossum (home page: http://www.python.org/~guido/)
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