Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/constants.rst

    r2 r391  
     1.. _built-in-consts:
     2
    13Built-in Constants
    24==================
    35
    46A small number of constants live in the built-in namespace.  They are:
    5 
    67
    78.. data:: False
     
    4041   Special value used in conjunction with extended slicing syntax.
    4142
    42    .. XXX Someone who understands extended slicing should fill in here.
    43 
    4443
    4544.. data:: __debug__
    4645
    4746   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`.
    4947   See also the :keyword:`assert` statement.
     48
     49
     50.. note::
     51
     52   The names :data:`None` and :data:`__debug__` cannot be reassigned
     53   (assignments to them, even as an attribute name, raise :exc:`SyntaxError`),
     54   so they can be considered "true" constants.
     55
     56   .. versionchanged:: 2.7
     57      Assignments to ``__debug__`` as an attribute became illegal.
    5058
    5159
Note: See TracChangeset for help on using the changeset viewer.