On Tue, Mar 30, 2004 at 05:17:31AM -0600, Ka-Ping Yee wrote: > Someone suggested the following syntax for setting function attributes: > > def func(arg, arg): > .author = 'Guido van Rossum' > .version = 42 > > Guido replied that he wanted to reserve ".name = value" for use in > "with" blocks. > > These two uses are not in conflict at all -- in fact, they are > perfectly compatible and i find the syntactic consistency elegant. Although this would not (I hope) be a common use-case, what would this code mean: with foo: def func(arg): .attrib = value pass ? I'm not entirely sure it's safe to say they don't conflict, although I don't see this case as a serious problem. -Andrew
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