7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.7\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2018-06-26 18:54 +0800\n "
10
+ "POT-Creation-Date : 2018-08-07 14:20 +0800\n "
11
11
"PO-Revision-Date : 2018-05-23 14:06+0000\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -66,47 +66,40 @@ msgstr ""
66
66
msgid "The following functions allow marshalled values to be read back in."
67
67
msgstr ""
68
68
69
- #: ../../c-api/marshal.rst:43
70
- msgid ""
71
- "XXX What about error detection? It appears that reading past the end of the "
72
- "file will always result in a negative numeric value (where that's relevant), "
73
- "but it's not clear that negative values won't be handled properly when "
74
- "there's no error. What's the right way to tell? Should only non-negative "
75
- "values be written using these routines?"
76
- msgstr ""
77
-
78
- #: ../../c-api/marshal.rst:52
69
+ #: ../../c-api/marshal.rst:46
79
70
msgid ""
80
71
"Return a C :c:type:`long` from the data stream in a :c:type:`FILE\\ *` opened "
81
72
"for reading. Only a 32-bit value can be read in using this function, "
82
73
"regardless of the native size of :c:type:`long`."
83
74
msgstr ""
84
75
85
- #: ../../c-api/marshal.rst:56 ../../c-api/marshal.rst:65
86
- msgid "On error, raise an exception and return ``-1``."
76
+ #: ../../c-api/marshal.rst:50 ../../c-api/marshal.rst:60
77
+ msgid ""
78
+ "On error, sets the appropriate exception (:exc:`EOFError`) and returns "
79
+ "``-1``."
87
80
msgstr ""
88
81
89
- #: ../../c-api/marshal.rst:61
82
+ #: ../../c-api/marshal.rst:56
90
83
msgid ""
91
84
"Return a C :c:type:`short` from the data stream in a :c:type:`FILE\\ *` "
92
85
"opened for reading. Only a 16-bit value can be read in using this function, "
93
86
"regardless of the native size of :c:type:`short`."
94
87
msgstr ""
95
88
96
- #: ../../c-api/marshal.rst:70
89
+ #: ../../c-api/marshal.rst:66
97
90
msgid ""
98
91
"Return a Python object from the data stream in a :c:type:`FILE\\ *` opened "
99
92
"for reading."
100
93
msgstr ""
101
94
102
- #: ../../c-api/marshal.rst:73 ../../c-api/marshal.rst:87
103
- #: ../../c-api/marshal.rst:96
95
+ #: ../../c-api/marshal.rst:69 ../../c-api/marshal.rst:83
96
+ #: ../../c-api/marshal.rst:92
104
97
msgid ""
105
- "On error, sets the appropriate exception (:exc:`EOFError` or :exc:"
106
- "`TypeError`) and returns *NULL*."
98
+ "On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError` "
99
+ "or :exc: `TypeError`) and returns *NULL*."
107
100
msgstr ""
108
101
109
- #: ../../c-api/marshal.rst:79
102
+ #: ../../c-api/marshal.rst:75
110
103
msgid ""
111
104
"Return a Python object from the data stream in a :c:type:`FILE\\ *` opened "
112
105
"for reading. Unlike :c:func:`PyMarshal_ReadObjectFromFile`, this function "
@@ -117,7 +110,7 @@ msgid ""
117
110
"anything else from the file."
118
111
msgstr ""
119
112
120
- #: ../../c-api/marshal.rst:93
113
+ #: ../../c-api/marshal.rst:89
121
114
msgid ""
122
115
"Return a Python object from the data stream in a byte buffer containing "
123
116
"*len* bytes pointed to by *data*."
0 commit comments