Skip to content

Commit

Permalink
update a broken link
Browse files Browse the repository at this point in the history
  • Loading branch information
JinhaiZ committed Oct 18, 2016
1 parent 80f9f1d commit 32927ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google-python-styleguide/python_language_rules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ True/False的求值
如果好处很显然, 就明智而谨慎的使用装饰器

定义:
`用于函数及方法的装饰器 <http://www.python.org/doc/2.4.3/whatsnew/node6.html>`_ (也就是@标记). 最常见的装饰器是@classmethod 和@staticmethod, 用于将常规函数转换成类方法或静态方法. 不过, 装饰器语法也允许用户自定义装饰器. 特别地, 对于某个函数 ``my_decorator`` , 下面的两段代码是等效的:
`用于函数及方法的装饰器 <https://docs.python.org/release/2.4.3/whatsnew/node6.html>`_ (也就是@标记). 最常见的装饰器是@classmethod 和@staticmethod, 用于将常规函数转换成类方法或静态方法. 不过, 装饰器语法也允许用户自定义装饰器. 特别地, 对于某个函数 ``my_decorator`` , 下面的两段代码是等效的:

.. code-block:: python
Expand Down

0 comments on commit 32927ec

Please sign in to comment.