[Python-Dev] [Python-checkins] r83596 - in python/branches/release26-maint: Doc/library/constants.rst (original) (raw)
Ezio Melotti ezio.melotti at gmail.com
Tue Aug 3 05:04:56 CEST 2010
- Previous message: [Python-Dev] Postponing 2.6.6rc1
- Next message: [Python-Dev] co_firstlineno on decorated functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
On 03/08/2010 0.47, georg.brandl wrote:
Author: georg.brandl Date: Mon Aug 2 23:47:02 2010 New Revision: 83596
Log: Merged revisions 83567 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ................ r83567 | georg.brandl | 2010-08-02 22:32:03 +0200 (Mo, 02 Aug 2010) | 9 lines Merged revisions 83552 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83552 | georg.brandl | 2010-08-02 21:36:36 +0200 (Mo, 02 Aug 2010) | 1 line #9438: clarify that constant names also cannot be assigned as attributes. ........ ................
Modified: python/branches/release26-maint/ (props changed) python/branches/release26-maint/Doc/library/constants.rst Modified: python/branches/release26-maint/Doc/library/constants.rst ============================================================================== --- python/branches/release26-maint/Doc/library/constants.rst (original) +++ python/branches/release26-maint/Doc/library/constants.rst Mon Aug 2 23:47:02 2010 @@ -3,7 +3,6 @@ A small number of constants live in the built-in namespace. They are: - .. data:: False The false value of the :class:
bool
type. @@ -39,16 +38,23 @@ Special value used in conjunction with extended slicing syntax. - .. XXX Someone who understands extended slicing should fill in here. - .. data:: debug This constant is true if Python was not started with an :option:-O
option. - Assignments to :const:_debug_
are illegal and raise a :exc:SyntaxError
. See also the :keyword:assert
statement. +.. note:: + + The names :data:None
and :data:_debug_
cannot be reassigned + (assignments to them, even as an attribute name, raise :exc:SyntaxError
), + so they can be considered "true" constants. + + .. versionchanged:: 2.7 + Assignments to_debug_
as an attribute became illegal.
this shouldn't be here.
+ + Constants added by the :mod:
site
module -----------------------------------------
Python-checkins mailing list Python-checkins at python.org http://mail.python.org/mailman/listinfo/python-checkins
Best Regards, Ezio Melotti
- Previous message: [Python-Dev] Postponing 2.6.6rc1
- Next message: [Python-Dev] co_firstlineno on decorated functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]