diff options
| author | int3l <viderbit@abv.bg> | 2016-04-23 11:57:21 +0300 |
|---|---|---|
| committer | int3l <viderbit@abv.bg> | 2016-04-23 11:57:21 +0300 |
| commit | 4509b306114d8de13e1b90d46829286f7dbb30f3 (patch) | |
| tree | 3d8c118dc6ad389a6b8f02799d8283bfee0139f8 | |
| parent | fc47a49587f1af6ea0db0804be2d984042486cd2 (diff) | |
| download | pyramid-4509b306114d8de13e1b90d46829286f7dbb30f3.tar.gz pyramid-4509b306114d8de13e1b90d46829286f7dbb30f3.tar.bz2 pyramid-4509b306114d8de13e1b90d46829286f7dbb30f3.zip | |
adjustment and update docstring to be consistant
| -rw-r--r-- | pyramid/decorator.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pyramid/decorator.py b/pyramid/decorator.py index 890bd3461..72c8b3800 100644 --- a/pyramid/decorator.py +++ b/pyramid/decorator.py @@ -19,15 +19,14 @@ class reify(object): And usage of Foo: >>> f = Foo() - >>> print(f.jammy) + >>> v = f.jammy 'jammy called' + >>> print(v) 1 - >>> print(f.jammy) + >>> f.jammy 1 >>> # jammy func not called the second time; it replaced itself with 1 - - Note: reassignment is possible - + >>> # Note: reassignment is possible >>> f.jammy = 2 >>> f.jammy 2 |
