new reserved words in 2.0

Tim Peters tim_one at email.msn.com
Mon Sep 18 11:42:10 EDT 2000


[dmost at magna.com.au]
> are copyright, credits and license now reserved words in Python 2.0?

No.

C:\Code\python\dist\src\PCbuild>python
Python 2.0b1 (#5, Sep 17 2000, 10:24:34) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> copyright
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2000 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.

>>> copyright = 42
>>> copyright
42
>>> del copyright
>>> copyright
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2000 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.

>>>

As that suggests, they're simply new builtin names, and your names shadow
them.





More information about the Python-list mailing list