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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1063>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to