Skip to content

Commit ca65c62

Browse files
authored
Merge pull request yidao620c#244 from wybcp/patch-1
Update p08_extending_property_in_subclass.rst
2 parents 2269d18 + 0394a26 commit ca65c62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/c08/p08_extending_property_in_subclass.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
如果你不知道到底是哪个基类定义了property,
165165
那你只能通过重新定义所有property并使用 ``super()`` 来将控制权传递给前面的实现。
166166

167-
值的注意的是上面演示的第一种技术还可以被用来扩展一个描述器(在8.9小节我们有专门的介绍)。比如:
167+
值得注意的是上面演示的第一种技术还可以被用来扩展一个描述器(在8.9小节我们有专门的介绍)。比如:
168168

169169
.. code-block:: python
170170
@@ -207,7 +207,7 @@
207207
print('Deleting name')
208208
super(SubPerson, SubPerson).name.__delete__(self)
209209
210-
最后值的注意的是,读到这里时,你应该会发现子类化 ``setter`` 和 ``deleter`` 方法其实是很简单的。
210+
最后值得注意的是,读到这里时,你应该会发现子类化 ``setter`` 和 ``deleter`` 方法其实是很简单的。
211211
这里演示的解决方案同样适用,但是在 `Python的issue页面 <http://bugs.python.org/issue14965>`_
212212
报告的一个bug,或许会使得将来的Python版本中出现一个更加简洁的方法。
213213

0 commit comments

Comments
 (0)