[Python-Dev] #pragmas and method attributes
Moshe Zadka
Moshe Zadka <mzadka@geocities.com>
Wed, 12 Apr 2000 20:01:13 +0200 (IST)
On Wed, 12 Apr 2000, Paul Prescod wrote:
> About a month ago I wrote (but did not publish) a proposal that combined
> #pragmas and method attributes. The reason I combined them is that in a
> lot of cases method "attributes" are supposed to be available in the
> parse tree, before the program begins to run. Here is my rough draft.
FWIW, I really really like this.
def func(...):
decl {zorb: 'visible', spark: 'some grammar rule'}
pass
Right on!
But maybe even
def func(...):
decl zorb='visible'
decl spark='some grammar rule'
pass
BTW: Why force the value to be a string? Any immutable basic type should
do fine, no??
--
Moshe Zadka <mzadka@geocities.com>.
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com