Issue 1058: Code Example for 'property' bug (original) (raw)

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.

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!