new reserved words in 2.0

dmost at magna.com.au dmost at magna.com.au
Mon Sep 18 13:54:16 EDT 2000


What! no winking? ;)

>>> copyright.__class__
<class site._Printer at 007E67FC>
>>> copyright.__dict__
{'_Printer__lines': ['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.'], '_Printer__linecnt': 8}

In article <LNBBLJKPBEHFEDALKOLCGEKPHGAA.tim_one at email.msn.com>,
  "Tim Peters" <tim_one at email.msn.com> wrote:
> [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.


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list