[Python-Dev] Should None be a keyword?

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Fri, 17 Mar 2000 22:12:15 +0100


Barry A. Warsaw wrote:
> >>>>> "KY" =3D=3D Ka-Ping Yee <ping@lfw.org> writes:
>=20
>     KY> Related to my last message: should None become a keyword in
>     KY> Py3K?
>=20
> Why?  Just to reserve it?

to avoid stuff errors like:

    def foo():

        result =3D None

        # two screenfuls of code

        None, a, b =3D mytuple # perlish unpacking

which gives an interesting error on the first line, instead
of a syntax error on the last.

</F>