A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-April/003395.html below:

[Python-Dev] #pragmas and method attributes

[Python-Dev] #pragmas and method attributes [Python-Dev] #pragmas and method attributesMoshe 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




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