[Python-Dev] xmlrpclib.{True, False} (was Re: Assignment to None)
M.-A. Lemburg
mal at egenix.com
Mon Jun 16 22:27:40 CEST 2008
On 2008-06-15 16:47, Georg Brandl wrote:
> Thomas Lee schrieb:
>> Georg Brandl wrote:
>>> Remember that it must still be possible to write (in 2.6)
>>>
>>> True = 0
>>> assert not True
>>
>> Ah of course. Looks like I should just avoid optimizations of
>> Name("True") and Name("False") all together. That's a shame!
>
> We can of course decide to make assignment to True and False
> illegal in 2.7 :)
Raising a run-time exception would be fine, but not a SyntaxError at
compile time - this would effectively make it impossible to keep
code compatible to Python 2.1.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Jun 16 2008)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
2008-07-07: EuroPython 2008, Vilnius, Lithuania 20 days to go
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the Python-Dev
mailing list