Changeset 391 for python/trunk/Doc/library/constants.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/constants.rst
r2 r391 1 .. _built-in-consts: 2 1 3 Built-in Constants 2 4 ================== 3 5 4 6 A small number of constants live in the built-in namespace. They are: 5 6 7 7 8 .. data:: False … … 40 41 Special value used in conjunction with extended slicing syntax. 41 42 42 .. XXX Someone who understands extended slicing should fill in here.43 44 43 45 44 .. data:: __debug__ 46 45 47 46 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 47 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. 50 58 51 59
Note:
See TracChangeset
for help on using the changeset viewer.