From: "Guido van Rossum" <guido@python.org> > I'd like the new keyword to be more generally useful than just for > defining property. the first candidate would be a generalization of 'class' (although that make it redundant with 'class' and meta-classes) so that KEYW-TO-BE kind name [ '(' expr,... ')' ] [ maybe [] extended syntax ]: suite would be equivalent to name = kind(name-as-string,(expr,...),dict-populated-executing-suite,__doc__=doc-strin g-in-suite) so we would have: class C: KEYW-TO-BE property foo: ... the remaining problem would be to pick a suitable KEYW-TO-BE
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