~ubuntu-branches/ubuntu/oneiric/python2.6/oneiric

« back to all changes in this revision

Viewing changes to Doc/library/constants.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-08-07 20:03:08 UTC
  • mfrom: (10.1.27 sid)
  • Revision ID: james.westby@ubuntu.com-20100807200308-bwsyymoc4donr9a9
Tags: 2.6.6~rc1-1ubuntu1
* Merge with Debian; remaining changes:
  - Regenerate the control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
A small number of constants live in the built-in namespace.  They are:
5
5
 
6
 
 
7
6
.. data:: False
8
7
 
9
8
   The false value of the :class:`bool` type.
39
38
 
40
39
   Special value used in conjunction with extended slicing syntax.
41
40
 
42
 
   .. XXX Someone who understands extended slicing should fill in here.
43
 
 
44
41
 
45
42
.. data:: __debug__
46
43
 
47
44
   This constant is true if Python was not started with an :option:`-O` option.
48
 
   Assignments to :const:`__debug__` are illegal and raise a :exc:`SyntaxError`.
49
 
   See also the :keyword:`assert` statement.
 
45
   It cannot be reassigned.  See also the :keyword:`assert` statement.
 
46
 
 
47
 
 
48
.. note::
 
49
 
 
50
   The name :data:`None` cannot be reassigned (assignments to it, even as an
 
51
   attribute name, raise :exc:`SyntaxError`), so it can be considered a "true"
 
52
   constant.
50
53
 
51
54
 
52
55
Constants added by the :mod:`site` module