Jeremy> Not that it's practical for 2.4, but I think it wouldn't be hard Jeremy> to post-process the existing AST to recognize decorators written Jeremy> like this. Jeremy> You'd like for adjacent statements of the form: Jeremy> Expr(List()) Jeremy> FunctionDef() Jeremy> and replace them with a single Jeremy> FunctionDef() Yes, but only if it appears at the top level of a module. Jeremy> Or do we need to catch Expr(ListComp()) too? PEP 318 doesn't Jeremy> mention semantics anywhere, so it doesn't say what is allowed Jeremy> inside the square brackets. I think you probably have to look at Michael Hudson's patch for semantics at the moment. The original PEP 318 was purely about syntax. I made some changes and Jim Jewett sent me some more changes which I still have sitting in my mailbox. I'll see if I can dig them out over the weekend and merge them in. Skip
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