Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8923a7a

Browse files
committed
Traducido c-api/allocation
1 parent 0dfb1d5 commit 8923a7a

File tree

1 file changed

+37
-7
lines changed

1 file changed

+37
-7
lines changed

c-api/allocation.po

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# Copyright (C) 2001-2020, Python Software Foundation
22
# This file is distributed under the same license as the Python package.
3-
# Maintained by the python-doc-es workteam.
3+
# Maintained by the python-doc-es workteam.
44
# [email protected] / https://mail.python.org/mailman3/lists/docs-es.python.org/
55
# Check https://github.com/PyCampES/python-docs-es/blob/3.7/TRANSLATORS to get the list of volunteers
66
#
7-
#, fuzzy
87
msgid ""
98
msgstr ""
109
"Project-Id-Version: Python 3.7\n"
1110
"Report-Msgid-Bugs-To: \n"
1211
"POT-Creation-Date: 2019-05-06 11:59-0400\n"
13-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12+
"PO-Revision-Date: 2020-05-08 01:33+0200\n"
1513
"Language-Team: python-doc-es (https://mail.python.org/mailman3/lists/docs-es."
1614
"python.org)\n"
1715
"MIME-Version: 1.0\n"
1816
"Content-Type: text/plain; charset=UTF-8\n"
1917
"Content-Transfer-Encoding: 8bit\n"
18+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
19+
"Last-Translator: \n"
20+
"Language: es\n"
21+
"X-Generator: Poedit 2.3\n"
2022

2123
#: ../Doc/c-api/allocation.rst:6
2224
msgid "Allocating Objects on the Heap"
23-
msgstr ""
25+
msgstr "Asignación de objetos en el montículo"
2426

2527
#: ../Doc/c-api/allocation.rst:17
2628
msgid ""
@@ -30,12 +32,18 @@ msgid ""
3032
"detector's set of observed objects. Other fields of the object are not "
3133
"affected."
3234
msgstr ""
35+
"Inicializa un objeto *op* recientemente asignado con su tipo y referencia "
36+
"inicial. Retorna el objeto inicializado. Si *type* indica que el objeto "
37+
"participa en el detector de basura cíclico, se agrega al conjunto de objetos "
38+
"observados del detector. Otros campos del objeto no se ven afectados."
3339

3440
#: ../Doc/c-api/allocation.rst:26
3541
msgid ""
3642
"This does everything :c:func:`PyObject_Init` does, and also initializes the "
3743
"length information for a variable-size object."
3844
msgstr ""
45+
"Esto hace todo lo que :c:func:`PyObject_Init` hace, y también inicializa la "
46+
"información de longitud para un objeto de tamaño variable."
3947

4048
#: ../Doc/c-api/allocation.rst:32
4149
msgid ""
@@ -45,6 +53,11 @@ msgid ""
4553
"the memory allocation is determined from the :c:member:`~PyTypeObject."
4654
"tp_basicsize` field of the type object."
4755
msgstr ""
56+
"Asigna un nuevo objeto Python usando el tipo de estructura de C *TYPE* y el "
57+
"objeto tipo Python *type*. Los campos no definidos por el encabezado del "
58+
"objeto Python no se inicializan;el conteo de referencias del objeto será "
59+
"uno. El tamaño de la asignación de memoria se determina a partir del campo :"
60+
"c:member:`~PyTypeObject.tp_basicsize` del tipo de objeto."
4861

4962
#: ../Doc/c-api/allocation.rst:41
5063
msgid ""
@@ -57,6 +70,15 @@ msgid ""
5770
"Embedding the array of fields into the same allocation decreases the number "
5871
"of allocations, improving the memory management efficiency."
5972
msgstr ""
73+
"Asigna un nuevo objeto Python usando el tipo de estructura de C *TYPE* y el "
74+
"objeto tipo Python *type*. Los campos no definidos por el encabezado del "
75+
"objeto Python no se inicializan. La memoria asignada permite los campos de "
76+
"la estructura *TYPE* más los campos *size* del tamaño dado por el campo :c:"
77+
"member:`~PyTypeObject.tp_itemsize` de *type*. Esto es útil para implementar "
78+
"objetos como tuplas, que pueden determinar su tamaño en el momento de la "
79+
"construcción. Incrustar el arreglo de campos en la misma asignación "
80+
"disminuye el número de asignaciones, mejorando la eficiencia de la gestión "
81+
"de memoria."
6082

6183
#: ../Doc/c-api/allocation.rst:53
6284
msgid ""
@@ -66,18 +88,26 @@ msgid ""
6688
"fields of the object should not be accessed after this call as the memory is "
6789
"no longer a valid Python object."
6890
msgstr ""
91+
"Libera memoria asignada a un objeto usando :c:func:`PyObject_New` o :c:func:"
92+
"`PyObject_NewVar`. Esto normalmente se llama desde el manejador :c:member:"
93+
"`~PyTypeObject.tp_dealloc` especificado en el tipo de objeto. No se debe "
94+
"acceder a los campos del objeto después de esta llamada, ya que la memoria "
95+
"ya no es un objeto Python válido."
6996

7097
#: ../Doc/c-api/allocation.rst:62
7198
msgid ""
7299
"Object which is visible in Python as ``None``. This should only be accessed "
73100
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
74101
"object."
75102
msgstr ""
103+
"Objeto que es visible en Python como ``None``. Esto solo se debe acceder "
104+
"utilizando el macro :c:macro:`Py_None`, que se evalúa como un puntero a este "
105+
"objeto."
76106

77107
#: ../Doc/c-api/allocation.rst:69
78108
msgid ":c:func:`PyModule_Create`"
79-
msgstr ""
109+
msgstr ":c:func:`PyModule_Create`"
80110

81111
#: ../Doc/c-api/allocation.rst:70
82112
msgid "To allocate and create extension modules."
83-
msgstr ""
113+
msgstr "Para asignar y crear módulos de extensión."

0 commit comments

Comments
 (0)