Skip to content

Commit f13066d

Browse files
[po] auto sync
1 parent 96654a0 commit f13066d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

whatsnew/2.1.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ msgid ""
122122
"of the rules, and a dissection of the implementation, can be found in the "
123123
"PEP."
124124
msgstr ""
125+
"Python 2.1 最显著的改变是增加了静态作用域这一语言特征来解决此问题。 作为它的第一项影响,在上述示例中的 ``name=name`` "
126+
"默认参数现在将不再必要。 简单地说,当一个函数内部的给定变量名没有被赋值时(通过赋值语句,或者 :keyword:`def`, "
127+
":keyword:`class` 或 :keyword:`import` 语句),对该变量的引用将在外层作用域的局部命名空间中查找。 "
128+
"对于该规则的更详细解释,以及具体实现的分析,请参阅相应的 PEP。"
125129

126130
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/whatsnew/2.1.rst:77
127131
msgid ""
@@ -131,6 +135,8 @@ msgid ""
131135
"rather unlikely though, since such code would have been pretty confusing to "
132136
"read in the first place."
133137
msgstr ""
138+
"对于同时在模块层级和包含下层函数定义的函数内部局部变量使用了相同变量名的代码来说这项改变可能会导致一些兼容性问题。 "
139+
"不过这看来不太可能发生,因为阅读这样的代码本来就会相当令人困惑。"
134140

135141
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/whatsnew/2.1.rst:83
136142
msgid ""

whatsnew/2.2.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,8 @@ msgid ""
10291029
"rather unlikely though, since such code would have been pretty confusing to "
10301030
"read in the first place."
10311031
msgstr ""
1032+
"对于同时在模块层级和包含下层函数定义的函数内部局部变量使用了相同变量名的代码来说这项改变可能会导致一些兼容性问题。 "
1033+
"不过这看来不太可能发生,因为阅读这样的代码本来就会相当令人困惑。"
10321034

10331035
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/whatsnew/2.2.rst:894
10341036
msgid ""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy