Skip to content

Commit eab8fd9

Browse files
authored
Merge pull request #131 from cmaureir/traduccion-allocation
2 parents 50c3fe1 + c0a2878 commit eab8fd9

File tree

1 file changed

+37
-7
lines changed

1 file changed

+37
-7
lines changed

c-api/allocation.po

+37-7
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
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
# docs-es@python.org / https://mail.python.org/mailman3/lists/docs-es.python.org/
55
# Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to get the list of volunteers
66
#
7-
#, fuzzy
87
msgid ""
98
msgstr ""
109
"Project-Id-Version: Python 3.8\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\n"
1614
"MIME-Version: 1.0\n"
1715
"Content-Type: text/plain; charset=UTF-8\n"
1816
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"Last-Translator: \n"
19+
"Language: es\n"
20+
"X-Generator: Poedit 2.3\n"
1921

2022
#: ../Doc/c-api/allocation.rst:6
2123
msgid "Allocating Objects on the Heap"
22-
msgstr ""
24+
msgstr "Asignación de objetos en el montículo"
2325

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

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

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

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

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

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

76106
#: ../Doc/c-api/allocation.rst:69
77107
msgid ":c:func:`PyModule_Create`"
78-
msgstr ""
108+
msgstr ":c:func:`PyModule_Create`"
79109

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

0 commit comments

Comments
 (0)