This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Small typo in properties example
Type: Stage:
Components: Documentation Versions: Python 2.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: cgrohmann, georg.brandl
Priority: normal Keywords:

Created on 2007-08-30 19:36 by cgrohmann, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg55505 - (view) Author: Carsten Grohmann (cgrohmann) Date: 2007-08-30 19:36
The example for property() contains a typo / small bug:

class C(object):
    def __init__(self): self.__x = None
[...]

should be:

class C(object):
    def __init__(self): self._x = None
[...]

Source: http://docs.python.org/lib/built-in-funcs.html
msg55513 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-08-30 20:54
Thanks, this is already fixed in the development docs
(http://docs.python.org/dev).
History
Date User Action Args
2022-04-11 14:56:26adminsetgithub: 45404
2007-08-30 20:54:00georg.brandlsetstatus: open -> closed
nosy: + georg.brandl
messages: + msg55513
resolution: out of date
2007-08-30 19:36:22cgrohmanncreate