Here's what the Python docs say about the 'copyright' builtin:
http://docs.python.org/library/constants.html#constants-added-by-the-site-module
As pbreit pointed out, compileapp.py includes:
is_jython = settings.global_settings.is_jython = 'java' in
sys.platform.lower() or hasattr(sys, 'JYTHON_JAR') or
str(copyright).find('Jython') > 0
I wonder if we need the 'copyright' check -- isn't 'java' in
sys.platform.lower() a sufficient check for Jython (that's the same check
performed by the Python 'site' module to determine whether to display the
Jython credits).
Anthony
On Tuesday, August 2, 2011 1:19:56 PM UTC-4, Jonathan Lundell wrote:
> On Aug 2, 2011, at 10:02 AM, pbreit wrote:
>
> > Looks like it could be a bug that only happens when a certain Java
> version is not found:
> >
> > is_jython = settings.global_settings.is_jython = 'java' in
> sys.platform.lower() or hasattr(sys, 'JYTHON_JAR') or
> str(copyright).find('Jython') > 0
> >
> >
> http://code.google.com/p/web2py/source/detail?r=398f46917b468faf67c9b201b505685e0013d9a6&path=/gluon/compileapp.py
>
>
> copyright appears to be a built-in symbol, at least in my command-line
> Python.
>
> ~ $ python
> Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on
> darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> copyright
> Copyright (c) 2001-2010 Python Software Foundation.
> All Rights Reserved.
>
> Copyright (c) 2000 BeOpen.com.
> All Rights Reserved.
>
> Copyright (c) 1995-2001 Corporation for National Research Initiatives.
> All Rights Reserved.
>
> Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
> All Rights Reserved.
> >>> type(copyright)
> <class 'site._Printer'>
> >>> str(copyright)
> 'Copyright (c) 2001-2010 Python Software Foundation.\nAll Rights
> Reserved.\n\nCopyright (c) 2000 BeOpen.com.\nAll Rights
> Reserved.\n\nCopyright (c) 1995-2001 Corporation for National Research
> Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995 Stichting
> Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.'
>
>