A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-July/016027.html below:

[Python-Dev] Re: PEP 244 syntax

[Python-Dev] Re: PEP 244 syntaxMartin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon, 16 Jul 2001 23:40:59 +0200
> > directive_statement: 'directive' NAME [atom] [';'] NEWLINE
> > 
> > How do you want this to change?
> 
> To make the directive statment useful for setting compiler
> parameters, the syntax should be extended to allow
> for an (optional) '='. Whether or not this '=' sign must be there
> is up to the definition of the directive NAME.

Ok.

> It may also be worthwhile using a testlist (see Grammar)
> instead of the fixed atom for cases where the compiler
> parameter needs to be a e.g. list of options.

Ok.

> 
> I'd also suggest to remove the optional ';' since this is
> not confrom with the rest of Python....

Sure it is; disallowing the semicolon would be not conform:

simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE

You can have a semicolon after each small_stmt

Regards,
Martin



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