[New-bugs-announce] [issue1063] Small typo in properties example

Carsten Grohmann report at bugs.python.org
Thu Aug 30 21:36:23 CEST 2007

New submission from Carsten Grohmann:

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

components: Documentation
messages: 55505
nosy: cgrohmann
severity: minor
status: open
title: Small typo in properties example
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list