[Python-Dev] Set the namespace free!

Georg Brandl g.brandl at gmx.net
Fri Jul 23 03:46:01 CEST 2010


Am 22.07.2010 21:49, schrieb Reid Kleckner:
> On Thu, Jul 22, 2010 at 11:49 AM, Alexander Belopolsky
> <alexander.belopolsky at gmail.com> wrote:
>> On Thu, Jul 22, 2010 at 12:53 PM,  <gregory.smith3 at sympatico.ca> wrote:
>>> I'm very amused by all the jokes about turning python into perl, but there's
>>> a good idea here that doesn't actually require that...
>>
>> No, there isn't.  And both '&' and '|' are valid python operators that
>> cannot be used this way.
>>
>> If you want ::, I think you can find a language or two to your liking. :-)
> 
> A syntax for escaping reserved words used as identifiers is a worthy
> and interesting idea, but I don't think it's worth adding to Python.

Exactly.  Such a feature is much more needed for languages that don't
feature globals(), getattr() and __dict__s.

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list