3 ms·
How might that implementation be used in code? Would coders be directly accessing and overriding the __dec__ attribute? Since decorators are definition time any
by ecma 13y ago
How might that implementation be used in code? Would coders be directly accessing and overriding the __dec__ attribute? Since decorators are definition time anyway, I don't really see much potential that decorated function factories can't already provide.
- scrollaway 13y ago"x = @y" will call y.__dec__. "@foo" behind a function will call foo.__dec__ with the function as an argument, meaning decoration behaviour can then be altered or be even completely different for other classes. As I said, there is DSL potential. As it stands, it's just something that is not possible.
- jessaustin 13y agoThe core python devs don't really care about DSLs.