-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathfile.po
More file actions
191 lines (167 loc) · 7.13 KB
/
file.po
File metadata and controls
191 lines (167 loc) · 7.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 1990-2020, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Python 2.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-09 18:46+0900\n"
"PO-Revision-Date: 2018-01-20 20:54+0000\n"
"Last-Translator: tomo\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/python-doc/python-27/language/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../../c-api/file.rst:6
msgid "File Objects"
msgstr "Objetos File"
#: ../../c-api/file.rst:10
msgid ""
"Python's built-in file objects are implemented entirely on the "
":c:type:`FILE\\*` support from the C standard library. This is an "
"implementation detail and may change in future releases of Python."
msgstr ""
#: ../../c-api/file.rst:17
msgid "This subtype of :c:type:`PyObject` represents a Python file object."
msgstr ""
#: ../../c-api/file.rst:24
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python file type. "
"This is exposed to Python programs as ``file`` and ``types.FileType``."
msgstr ""
#: ../../c-api/file.rst:30
msgid ""
"Return true if its argument is a :c:type:`PyFileObject` or a subtype of "
":c:type:`PyFileObject`."
msgstr ""
#: ../../c-api/file.rst:33
msgid "Allowed subtypes to be accepted."
msgstr ""
#: ../../c-api/file.rst:39
msgid ""
"Return true if its argument is a :c:type:`PyFileObject`, but not a subtype "
"of :c:type:`PyFileObject`."
msgstr ""
#: ../../c-api/file.rst:49
msgid ""
"On success, return a new file object that is opened on the file given by "
"*filename*, with a file mode given by *mode*, where *mode* has the same "
"semantics as the standard C routine :c:func:`fopen`. On failure, return "
"*NULL*."
msgstr ""
#: ../../c-api/file.rst:56
msgid ""
"Create a new :c:type:`PyFileObject` from the already-open standard C file "
"pointer, *fp*. The function *close* will be called when the file should be "
"closed. Return *NULL* and close the file using *close* on failure. *close* "
"is optional and can be set to *NULL*."
msgstr ""
#: ../../c-api/file.rst:64
msgid "Return the file object associated with *p* as a :c:type:`FILE\\*`."
msgstr ""
#: ../../c-api/file.rst:66
msgid ""
"If the caller will ever use the returned :c:type:`FILE\\*` object while the "
":term:`GIL` is released it must also call the :c:func:`PyFile_IncUseCount` "
"and :c:func:`PyFile_DecUseCount` functions described below as appropriate."
msgstr ""
#: ../../c-api/file.rst:73
msgid ""
"Increments the PyFileObject's internal use count to indicate that the "
"underlying :c:type:`FILE\\*` is being used. This prevents Python from "
"calling f_close() on it from another thread. Callers of this must call "
":c:func:`PyFile_DecUseCount` when they are finished with the "
":c:type:`FILE\\*`. Otherwise the file object will never be closed by "
"Python."
msgstr ""
#: ../../c-api/file.rst:80
msgid "The :term:`GIL` must be held while calling this function."
msgstr ""
#: ../../c-api/file.rst:82
msgid ""
"The suggested use is to call this after :c:func:`PyFile_AsFile` and before "
"you release the GIL::"
msgstr ""
#: ../../c-api/file.rst:99
msgid ""
"Decrements the PyFileObject's internal unlocked_count member to indicate "
"that the caller is done with its own use of the :c:type:`FILE\\*`. This may "
"only be called to undo a prior call to :c:func:`PyFile_IncUseCount`."
msgstr ""
#: ../../c-api/file.rst:103
msgid ""
"The :term:`GIL` must be held while calling this function (see the example "
"above)."
msgstr ""
#: ../../c-api/file.rst:113
msgid ""
"Equivalent to ``p.readline([n])``, this function reads one line from the "
"object *p*. *p* may be a file object or any object with a "
":meth:`~io.IOBase.readline` method. If *n* is ``0``, exactly one line is "
"read, regardless of the length of the line. If *n* is greater than ``0``, "
"no more than *n* bytes will be read from the file; a partial line can be "
"returned. In both cases, an empty string is returned if the end of the file"
" is reached immediately. If *n* is less than ``0``, however, one line is "
"read regardless of length, but :exc:`EOFError` is raised if the end of the "
"file is reached immediately."
msgstr ""
"Equivalente a ``p.readline([n])``, esta função lê uma linha do objeto *p*. "
"*p* pode ser um objeto arquivo ou qualquer objeto com um método "
":meth:`~io.IOBase.readline`. Se *n* for ``0``, exatamente uma linha é lida, "
"independentemente do comprimento da linha. Se *n* for maior que ``0``, não "
"mais do que *n* bytes serão lidos do arquivo; uma linha parcial pode ser "
"retornada. Em ambos os casos, uma string vazia é retornada se o final do "
"arquivo for alcançado imediatamente. Se *n* for menor que ``0``, entretanto,"
" uma linha é lida independentemente do comprimento, mas :exc:`EOFError` é "
"levantada se o final do arquivo for alcançado imediatamente."
#: ../../c-api/file.rst:126
msgid "Return the name of the file specified by *p* as a string object."
msgstr ""
#: ../../c-api/file.rst:133
msgid ""
"Available on systems with :c:func:`setvbuf` only. This should only be "
"called immediately after file object creation."
msgstr ""
#: ../../c-api/file.rst:139
msgid ""
"Set the file's encoding for Unicode output to *enc*. Return ``1`` on success"
" and ``0`` on failure."
msgstr ""
#: ../../c-api/file.rst:147
msgid ""
"Set the file's encoding for Unicode output to *enc*, and its error mode to "
"*err*. Return ``1`` on success and ``0`` on failure."
msgstr ""
#: ../../c-api/file.rst:157
msgid ""
"This function exists for internal use by the interpreter. Set the "
":attr:`softspace` attribute of *p* to *newflag* and return the previous "
"value. *p* does not have to be a file object for this function to work "
"properly; any object is supported (thought its only interesting if the "
":attr:`softspace` attribute can be set). This function clears any errors, "
"and will return ``0`` as the previous value if the attribute either does not"
" exist or if there were errors in retrieving it. There is no way to detect "
"errors from this function, but doing so should not be needed."
msgstr ""
#: ../../c-api/file.rst:171
msgid ""
"Write object *obj* to file object *p*. The only supported flag for *flags* "
"is :const:`Py_PRINT_RAW`; if given, the :func:`str` of the object is written"
" instead of the :func:`repr`. Return ``0`` on success or ``-1`` on failure;"
" the appropriate exception will be set."
msgstr ""
"Escreve o objeto *obj* no objeto arquivo *p*. O único sinalizador suportado "
"para *flags* é :const:`Py_PRINT_RAW`; se fornecido, o :func:`str` do objeto "
"é escrito em vez de :func:`repr`. Retorna ``0`` em caso de sucesso ou ``-1``"
" em caso de falha; a exceção apropriada será definida."
#: ../../c-api/file.rst:179
msgid ""
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
"failure; the appropriate exception will be set."
msgstr ""
"Escreve a string *s* no objeto arquivo *p*. Retorna ``0`` em caso de sucesso"
" ou ``-1`` em caso de falha; a exceção apropriada será definida."