[Python-Dev] Set the namespace free!

gregory.smith3 at sympatico.ca gregory.smith3 at sympatico.ca
Thu Jul 22 18:44:07 CEST 2010


oops, :name does break things, e.g

   if x :return


So, it could be ::name or  |name  or &name or !name or whatever.



From: gregory.smith3 at sympatico.ca
To: python-dev at python.org
Subject: RE: [Python-Dev] Set the namespace free!
Date: Thu, 22 Jul 2010 16:24:27 +0000








I agree with the idea, but a far less radical change is needed to get the desired result.
The basic idea is this: it should be possible to use any name as an identifier in the syntax, including names
like 'while' and 'import'. But there is no need to mess up the entire language to allow this
(either by quoting all the identifiers, perl-style, or by marking the keywords). 

All that is needed is something like this:

foo = 7
:foo = 7   # exactly like foo=7
...
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100722/c82299d9/attachment.html>


More information about the Python-Dev mailing list