@@ -10,6 +10,7 @@ msgstr ""
1010"Report-Msgid-Bugs-To : \n "
1111"POT-Creation-Date : 2018-06-30 05:56+0900\n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13+ "
Last-Translator :
cissoid <[email protected] >, 2018\n "
1314"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1415"MIME-Version : 1.0\n "
1516"Content-Type : text/plain; charset=UTF-8\n "
@@ -19,28 +20,30 @@ msgstr ""
1920
2021#: ../../library/__future__.rst:2
2122msgid ":mod:`__future__` --- Future statement definitions"
22- msgstr ""
23+ msgstr ":mod:`__future__` —— Future 语句定义 "
2324
2425#: ../../library/__future__.rst:7
2526msgid "**Source code:** :source:`Lib/__future__.py`"
26- msgstr ""
27+ msgstr "**源代码:** :source:`Lib/__future__.py` "
2728
2829#: ../../library/__future__.rst:11
2930msgid ":mod:`__future__` is a real module, and serves three purposes:"
30- msgstr ""
31+ msgstr ":mod:`__future__` 是一个真正的模块,这主要有 3 个原因: "
3132
3233#: ../../library/__future__.rst:13
3334msgid ""
3435"To avoid confusing existing tools that analyze import statements and expect "
3536"to find the modules they're importing."
36- msgstr ""
37+ msgstr "避免混淆已有的分析 import 语句并查找 import 的模块的工具。 "
3738
3839#: ../../library/__future__.rst:16
3940msgid ""
4041"To ensure that :ref:`future statements <future>` run under releases prior to"
4142" 2.1 at least yield runtime exceptions (the import of :mod:`__future__` will"
4243" fail, because there was no module of that name prior to 2.1)."
4344msgstr ""
45+ "确保 :ref:`future 语句 <future>` 在 2.1 之前的版本运行时至少能抛出 runtime 异常(import "
46+ ":mod:`__future__` 会失败,因为 2.1 版本之前没有这个模块)。"
4447
4548#: ../../library/__future__.rst:20
4649msgid ""
@@ -49,29 +52,33 @@ msgid ""
4952"documentation, and can be inspected programmatically via importing "
5053":mod:`__future__` and examining its contents."
5154msgstr ""
55+ "当引入不兼容的修改时,可以记录其产生的时间以及正式引入的时间。这是一种可执行的文档,并且可以通过 import :mod:`__future__` "
56+ "来做程序性的检查。"
5257
5358#: ../../library/__future__.rst:25
5459msgid "Each statement in :file:`__future__.py` is of the form::"
55- msgstr ""
60+ msgstr ":file:`__future__.py` 中的每一条语句都是以下格式的: "
5661
5762#: ../../library/__future__.rst:31
5863msgid ""
5964"where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both"
6065" are 5-tuples of the same form as :data:`sys.version_info`::"
6166msgstr ""
67+ "通常 *OptionalRelease* 要比 *MandatoryRelease* 小,并且都是和 :data:`sys.version_info` "
68+ "格式一致的 5 元素元组。"
6269
6370#: ../../library/__future__.rst:41
6471msgid ""
6572"*OptionalRelease* records the first release in which the feature was "
6673"accepted."
67- msgstr ""
74+ msgstr "*OptionalRelease* 记录了一个特性首次发布时的 Python 版本。 "
6875
6976#: ../../library/__future__.rst:43
7077msgid ""
7178"In the case of a *MandatoryRelease* that has not yet occurred, "
7279"*MandatoryRelease* predicts the release in which the feature will become "
7380"part of the language."
74- msgstr ""
81+ msgstr "在 *MandatoryRelases* 还没有发布时,*MandatoryRelease* 表示该特性会变成语言的一部分的预测时间。 "
7582
7683#: ../../library/__future__.rst:47
7784msgid ""
@@ -80,18 +87,22 @@ msgid ""
8087"statement to use the feature in question, but may continue to use such "
8188"imports."
8289msgstr ""
90+ "其他情况下,*MandatoryRelease* 用来记录这个特性是何时成为语言的一部分的。从该版本往后,使用该特性将不需要 future "
91+ "语句,不过很多人还是会加上对应的 import。"
8392
8493#: ../../library/__future__.rst:51
8594msgid ""
8695"*MandatoryRelease* may also be ``None``, meaning that a planned feature got "
8796"dropped."
88- msgstr ""
97+ msgstr "*MandatoryRelease* 也可能是 ``None``, 表示这个特性已经被撤销。 "
8998
9099#: ../../library/__future__.rst:54
91100msgid ""
92101"Instances of class :class:`_Feature` have two corresponding methods, "
93102":meth:`getOptionalRelease` and :meth:`getMandatoryRelease`."
94103msgstr ""
104+ ":class:`_Feature` 类的实例有两个对应的方法,:meth:`getOptionalRelease` 和 "
105+ ":meth:`getMandatoryRelease`。"
95106
96107#: ../../library/__future__.rst:57
97108msgid ""
@@ -100,6 +111,8 @@ msgid ""
100111"dynamically compiled code. This flag is stored in the :attr:`compiler_flag`"
101112" attribute on :class:`_Feature` instances."
102113msgstr ""
114+ "*CompilerFlag* 是一个(位)标记,对于动态编译的代码,需要将这个标记作为第四个参数传入内建函数 :func:`compile` "
115+ "中以开启对应的特性。这个标记存储在 :class:`_Feature` 类实例的 :attr:`compiler_flag` 属性中。"
103116
104117#: ../../library/__future__.rst:62
105118msgid ""
0 commit comments