Package SCons :: Package compat :: Module _scons_builtins
[hide private]
[frames] | no frames]

Module _scons_builtins

source code

Compatibility idioms for builtins names

This module adds names to the builtins module for things that we want to use in SCons but which don't show up until later Python versions than the earliest ones we support.

This module checks for the following builtins names:

all() any() memoryview()

Implementations of functions are NOT guaranteed to be fully compliant with these functions in later versions of Python. We are only concerned with adding functionality that we actually use in SCons, so be wary if you lift this code for other uses. (That said, making these more nearly the same as later, official versions is still a desirable goal, we just don't need to be obsessive about it.)

If you're looking at this with pydoc and various names don't show up in the FUNCTIONS or DATA output, that means those names are already built in to this version of Python and we don't need to add them from this module.

Classes [hide private]
  memoryview
Functions [hide private]
 
all(iterable)
Returns True if all elements of the iterable are true.
source code
 
any(iterable)
Returns True if any element of the iterable is true.
source code
Variables [hide private]
  __doc__ = ...
  __revision__ = 'src/engine/SCons/compat/_scons_builtins.py 20...
  __package__ = 'SCons.compat'
Variables Details [hide private]

__doc__

Value:
"""
Compatibility idioms for builtins names

This module adds names to the builtins module for things that we want
to use in SCons but which don't show up until later Python versions th\
an
the earliest ones we support.

...

__revision__

Value:
'src/engine/SCons/compat/_scons_builtins.py  2013/03/03 09:48:35 garyo\
'