@@ -31,28 +31,37 @@ msgstr "Objeto List"
3131#: ../../c-api/list.rst:13
3232msgid "This subtype of :c:type:`PyObject` represents a Python list object."
3333msgstr ""
34+ "Este subtipo de :c:type:`PyObject` representa um objeto de lista Python."
3435
3536#: ../../c-api/list.rst:18
3637msgid ""
3738"This instance of :c:type:`PyTypeObject` represents the Python list type. "
3839"This is the same object as :class:`list` in the Python layer."
3940msgstr ""
41+ "Esta instância de :c:type:`PyTypeObject` representa o tipo de lista Python. "
42+ "Este é o mesmo objeto que :class:`list` na camada Python."
4043
4144#: ../../c-api/list.rst:24
4245msgid ""
4346"Return true if *p* is a list object or an instance of a subtype of the list "
4447"type."
4548msgstr ""
49+ "Retorna verdadeiro se *p* for um objeto de lista ou uma instância de um "
50+ "subtipo do tipo de lista."
4651
4752#: ../../c-api/list.rst:30
4853msgid ""
4954"Return true if *p* is a list object, but not an instance of a subtype of the "
5055"list type."
5156msgstr ""
57+ "Retorna verdadeiro se *p* for um objeto de lista, mas não uma instância de "
58+ "um subtipo do tipo de lista."
5259
5360#: ../../c-api/list.rst:36
5461msgid "Return a new list of length *len* on success, or ``NULL`` on failure."
5562msgstr ""
63+ "Retorna uma nova lista de comprimento *len* em caso de sucesso, ou ``NULL`` "
64+ "em caso de falha."
5665
5766#: ../../c-api/list.rst:40
5867msgid ""
@@ -61,16 +70,22 @@ msgid ""
6170"`PySequence_SetItem` or expose the object to Python code before setting all "
6271"items to a real object with :c:func:`PyList_SetItem`."
6372msgstr ""
73+ "Se *len* for maior que zero, os itens do objeto de lista retornado são "
74+ "definidos como ``NULL``. Portanto, você não pode usar funções API abstratas, "
75+ "como :c:func:`PySequence_SetItem` ou expor o objeto ao código Python antes "
76+ "de definir todos os itens para um objeto real com :c:func:`PyList_SetItem`."
6477
6578#: ../../c-api/list.rst:50
6679msgid ""
6780"Return the length of the list object in *list*; this is equivalent to "
6881"``len(list)`` on a list object."
6982msgstr ""
83+ "Retorna o comprimento do objeto de lista em *list*; isto é equivalente a "
84+ "``len(list)`` em um objeto lista."
7085
7186#: ../../c-api/list.rst:56
7287msgid "Macro form of :c:func:`PyList_Size` without error checking."
73- msgstr ""
88+ msgstr "Forma macro de :c:func:`PyList_Size` sem verificação de erros. "
7489
7590#: ../../c-api/list.rst:61
7691msgid ""
@@ -79,17 +94,24 @@ msgid ""
7994"supported. If *index* is out of bounds (<0 or >=len(list)), return ``NULL`` "
8095"and set an :exc:`IndexError` exception."
8196msgstr ""
97+ "Retorna o objeto na posição *index* na lista apontada por *list*. A posição "
98+ "deve ser não negativa; não há suporte à indexação do final da lista. Se "
99+ "*index* estiver fora dos limites (<o ou >=len(list)), retorna ``NULL`` e "
100+ "levanta uma exceção :exc:`IndexError`."
82101
83102#: ../../c-api/list.rst:69
84103msgid "Macro form of :c:func:`PyList_GetItem` without error checking."
85- msgstr ""
104+ msgstr "Forma macro de :c:func:`PyList_GetItem` sem verificação de erros. "
86105
87106#: ../../c-api/list.rst:74
88107msgid ""
89108"Set the item at index *index* in list to *item*. Return ``0`` on success. "
90109"If *index* is out of bounds, return ``-1`` and set an :exc:`IndexError` "
91110"exception."
92111msgstr ""
112+ "Define o item no índice *index* na lista como *item*. Retorna ``0`` em caso "
113+ "de sucesso. Se *index* estiver fora dos limites, retorna ``-1`` e levanta "
114+ "uma exceção :exc:`IndexError`."
93115
94116#: ../../c-api/list.rst:80
95117msgid ""
@@ -104,7 +126,7 @@ msgid ""
104126"Macro form of :c:func:`PyList_SetItem` without error checking. This is "
105127"normally only used to fill in new lists where there is no previous content."
106128msgstr ""
107- "Forma macro de :c:func:`PyList_SetItem` sem checagem de erro. Este é "
129+ "Forma macro de :c:func:`PyList_SetItem` sem verificação de erro. Este é "
108130"normalmente usado apenas para preencher novas listas onde não há conteúdo "
109131"anterior."
110132
@@ -114,20 +136,29 @@ msgid ""
114136"`PyList_SetItem`, does *not* discard a reference to any item that is being "
115137"replaced; any reference in *list* at position *i* will be leaked."
116138msgstr ""
139+ "Esta função \" rouba\" uma referência para o *item* e, ao contrário de :c:"
140+ "func:`PyList_SetItem`, *não* descarta uma referência para nenhum item que "
141+ "esteja sendo substituído; qualquer referência em *list* será enviada."
117142
118143#: ../../c-api/list.rst:99
119144msgid ""
120145"Insert the item *item* into list *list* in front of index *index*. Return "
121146"``0`` if successful; return ``-1`` and set an exception if unsuccessful. "
122147"Analogous to ``list.insert(index, item)``."
123148msgstr ""
149+ "Insere o item *item* na lista *list* na frente do índice *index*. Retorna "
150+ "``0`` se for bem-sucedido; retorna ``-1`` e levanta uma exceção se "
151+ "malsucedido. Análogo a ``list.insert(index, item)``."
124152
125153#: ../../c-api/list.rst:106
126154msgid ""
127155"Append the object *item* at the end of list *list*. Return ``0`` if "
128156"successful; return ``-1`` and set an exception if unsuccessful. Analogous "
129157"to ``list.append(item)``."
130158msgstr ""
159+ "Adiciona o item *item* ao final da lista *list*. Retorna ``0`` se for bem-"
160+ "sucedido; retorna ``-1`` e levanta uma exceção se malsucedido. Análogo a "
161+ "``list.insert(index, item)``."
131162
132163#: ../../c-api/list.rst:113
133164msgid ""
@@ -136,6 +167,9 @@ msgid ""
136167"Analogous to ``list[low:high]``. Indexing from the end of the list is not "
137168"supported."
138169msgstr ""
170+ "Retorna uma lista dos objetos em *list* contendo os objetos *entre* *low* e "
171+ "*alto*. Retorne ``NULL`` e levanta uma exceção se malsucedido. Análogo a "
172+ "``list[low:high]``. Não há suporte à indexação do final da lista."
139173
140174#: ../../c-api/list.rst:120
141175msgid ""
@@ -145,21 +179,27 @@ msgid ""
145179"Return ``0`` on success, ``-1`` on failure. Indexing from the end of the "
146180"list is not supported."
147181msgstr ""
182+ "Define a fatia de *list* entre *low* e *high* para o conteúdo de *itemlist*. "
183+ "Análogo a ``list[low:high] = itemlist``. *itemlist* pode ser ``NULL``, "
184+ "indicando a atribuição de uma lista vazia (exclusão de fatia). Retorna ``0`` "
185+ "em caso de sucesso, ``-1`` em caso de falha. Não há suporte à indexação do "
186+ "final da lista."
148187
149188#: ../../c-api/list.rst:129
150189msgid ""
151190"Sort the items of *list* in place. Return ``0`` on success, ``-1`` on "
152191"failure. This is equivalent to ``list.sort()``."
153192msgstr ""
193+ "Ordena os itens de *list* no mesmo lugar. Retorna ``0`` em caso de sucesso, "
194+ "e ``-1`` em caso de falha. Isso é o equivalente de ``list.sort()``."
154195
155196#: ../../c-api/list.rst:135
156197msgid ""
157198"Reverse the items of *list* in place. Return ``0`` on success, ``-1`` on "
158199"failure. This is the equivalent of ``list.reverse()``."
159200msgstr ""
160- "Inverte os termos de *list* no mesmo lugar. Retorna ``0`` em caso de "
161- "sucesso, e ``-1`` em caso de falha. Isso é o equivalente de ``list."
162- "reverse()``."
201+ "Inverte os itens de *list* no mesmo lugar. Retorna ``0`` em caso de sucesso, "
202+ "e ``-1`` em caso de falha. Isso é o equivalente de ``list.reverse()``."
163203
164204#: ../../c-api/list.rst:143
165205msgid ""
0 commit comments