English-like Python

Benjamin J. Racine bjracine at glosten.com
Tue Jan 20 21:48:22 CET 2009

Doesn't ipython (the interactive shell) make this possible in some cases... not that's what you seem to be looking for exactly.
Ben Racine

-----Original Message-----
From: python-list-bounces+bjracine=glosten.com at python.org [mailto:python-list-bounces+bjracine=glosten.com at python.org] On Behalf Of Aaron Brady
Sent: Tuesday, January 20, 2009 10:14 AM
To: python-list at python.org
Subject: Re: English-like Python

On Jan 17, 6:10 pm, The Music Guy <music... at alphaios.net> wrote:
> Wow, impressive responses.
> It sounds like the general consensus is that English would not be a 
> good choice for programming even if there were an interpreter capable 
> of turning human language into machine language. But that makes sense; 
> even English professionals have trouble understanding each other sometimes.
> Until that problem is somehow overcome, there's not much hope of 
> computers to overcome it.

I think it would be a good step if you could make some sensible interpretation of a typical statement without its parentheses.

f "abc" 123
f( "abc", 123 )

It would be just the thing in a couple of situations... though it does conflict with raw-string literals as stated: r"abc"... which if you left open, would be susceptible to a local definition of r!.  Maybe you could put it after, like numeric literals: 123L, "abc"r, which is not bad.

More information about the Python-list mailing list