classification
Title: Code Example for 'property' bug
Type: compile error Stage:
Components: Documentation Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: KennethLove, georg.brandl
Priority: normal Keywords:

Created on 2007-08-29 15:43 by KennethLove, last changed 2007-08-29 16:36 by georg.brandl. This issue is now closed.

Messages (2)
msg55423 - (view) Author: Kenneth Love (KennethLove) Date: 2007-08-29 15:43
The code example for 'property' in the online documentation appears to
have several syntax errors.

In the class C, the functions getx, setx, and delx all refer to '_x',
but __init__ assigns '__x'.  In other words, single underscores were
used where double underscores were intended (or vice versa?).

NOTE: I was unsure what "Type" of issue this was based on the provided
list.  I chose "compile error" because it seemed to be the best fit.
msg55424 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-08-29 16:36
Kenneth Love schrieb:
> New submission from Kenneth Love:
> 
> The code example for 'property' in the online documentation appears to
> have several syntax errors.
> 
> In the class C, the functions getx, setx, and delx all refer to '_x',
> but __init__ assigns '__x'.  In other words, single underscores were
> used where double underscores were intended (or vice versa?).

This is already fixed in SVN and will be in the next released docs version.
Thanks for reporting!
History
Date User Action Args
2007-08-29 16:36:32georg.brandlsetstatus: open -> closed
nosy: + georg.brandl
messages: + msg55424
resolution: fixed
2007-08-29 15:43:56KennethLovecreate