@@ -11,15 +11,16 @@ msgstr ""
11
11
"Project-Id-Version : Python 3.11\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"POT-Creation-Date : 2024-11-21 16:38-0300\n "
14
- "PO-Revision-Date : 2022-10-27 03:12-0300 \n "
14
+ "PO-Revision-Date : 2025-02-02 10:07-0500 \n "
15
15
"
Last-Translator :
Marco Richetta <[email protected] >\n "
16
- "Language : es\n "
17
16
"Language-Team : python-doc-es\n "
18
- "Plural-Forms : nplurals=2; plural=(n != 1); \n "
17
+ "Language : es \n "
19
18
"MIME-Version : 1.0\n "
20
19
"Content-Type : text/plain; charset=utf-8\n "
21
20
"Content-Transfer-Encoding : 8bit\n "
21
+ "Plural-Forms : nplurals=2; plural=(n != 1);\n "
22
22
"Generated-By : Babel 2.16.0\n "
23
+ "X-Generator : Poedit 3.5\n "
23
24
24
25
#: ../Doc/c-api/memory.rst:8
25
26
msgid "Memory Management"
@@ -121,6 +122,15 @@ msgid ""
121
122
"free(buf); /* malloc'ed */\n"
122
123
"return res;"
123
124
msgstr ""
125
+ "PyObject *res;\n"
126
+ "char *buf = (char *) malloc(BUFSIZ); /* for I/O */\n"
127
+ "\n"
128
+ "if (buf == NULL)\n"
129
+ " return PyErr_NoMemory();\n"
130
+ "...Do some I/O operation involving buf...\n"
131
+ "res = PyBytes_FromString(buf);\n"
132
+ "free(buf); /* malloc'ed */\n"
133
+ "return res;"
124
134
125
135
#: ../Doc/c-api/memory.rst:68
126
136
msgid ""
@@ -270,10 +280,15 @@ msgid ""
270
280
"`PyMem_Malloc`, :c:func:`PyMem_RawMalloc`, or :c:func:`malloc`, but not :c:"
271
281
"func:`PyObject_Malloc`."
272
282
msgstr ""
283
+ "Por ejemplo, *buffers* (objetos que no son de Python) deben asignarse "
284
+ "usando :c:func:`PyMem_Malloc`, :c:func:`PyMem_RawMalloc`, o :c:func:"
285
+ "`malloc`, pero no :c:func:`PyObject_Malloc`."
273
286
274
287
#: ../Doc/c-api/memory.rst:133
275
288
msgid "See :ref:`Memory Allocation APIs <free-threaded-memory-allocation>`."
276
289
msgstr ""
290
+ "Consulte :ref:`APIs de Asignación de Memoria <free-threaded-memory-"
291
+ "allocation>`."
277
292
278
293
#: ../Doc/c-api/memory.rst:139
279
294
msgid "Raw Memory Interface"
@@ -760,6 +775,8 @@ msgid ""
760
775
"``mimalloc``: :ref:`mimalloc memory allocator <mimalloc>`. The pymalloc "
761
776
"allocator will be used if mimalloc support isn't available."
762
777
msgstr ""
778
+ "``mimalloc``: :ref:`asignador de memoria mimalloc <mimalloc>`. El asignador "
779
+ "pymalloc se usará si no hay compatibilidad con mimalloc."
763
780
764
781
# debug hooks se deja como enlaces de depuración ya que en traducciones
765
782
# anteriores se dejó como enlaces
@@ -936,6 +953,9 @@ msgid ""
936
953
"allocator may be called in different interpreters that do not share a "
937
954
"``GIL``."
938
955
msgstr ""
956
+ "Para los dominios restantes, el asignador también debe ser seguro para los "
957
+ "hilos: el asignador se podría llamar desde intérpretes diferentes que no "
958
+ "comparten un ``GIL``."
939
959
940
960
#: ../Doc/c-api/memory.rst:495
941
961
msgid ""
@@ -957,7 +977,7 @@ msgstr ""
957
977
958
978
#: ../Doc/c-api/memory.rst:504
959
979
msgid ":c:func:`PyMem_SetAllocator` does have the following contract:"
960
- msgstr ""
980
+ msgstr ":c:func:`PyMem_SetAllocator` tiene el contrato siguiente: "
961
981
962
982
#: ../Doc/c-api/memory.rst:506
963
983
msgid ""
@@ -976,10 +996,14 @@ msgid ""
976
996
"existing allocator. Substituting the current allocator for some other "
977
997
"arbitrary one is **not supported**."
978
998
msgstr ""
999
+ "Si se llama después de que Python haya terminado inicializándose (después de "
1000
+ "llamar :c:func:`Py_InitializeFromConfig`) el asignador **debe** envolver el "
1001
+ "asignador existente. Substituyendo el asignador actual con otro arbitrario "
1002
+ "**no es compatible**."
979
1003
980
1004
#: ../Doc/c-api/memory.rst:519
981
1005
msgid "All allocators must be thread-safe."
982
- msgstr ""
1006
+ msgstr "Todos los asignadores deben ser seguro para los hilos. "
983
1007
984
1008
#: ../Doc/c-api/memory.rst:525
985
1009
msgid ""
@@ -1095,9 +1119,9 @@ msgid ""
1095
1119
"Let *S* = ``sizeof(size_t)``. ``2*S`` bytes are added at each end of each "
1096
1120
"block of *N* bytes requested. The memory layout is like so, where p "
1097
1121
"represents the address returned by a malloc-like or realloc-like function "
1098
- "(``p[i:j]`` means the slice of bytes from ``*(p+i)`` inclusive up to "
1099
- "``*(p +j)`` exclusive; note that the treatment of negative indices differs "
1100
- "from a Python slice):"
1122
+ "(``p[i:j]`` means the slice of bytes from ``*(p+i)`` inclusive up to ``*(p "
1123
+ "+j)`` exclusive; note that the treatment of negative indices differs from a "
1124
+ "Python slice):"
1101
1125
msgstr ""
1102
1126
"Sea *S* = ``sizeof(size_t)``. Se agregan ``2*S`` bytes en cada extremo de "
1103
1127
"cada bloque de *N* bytes solicitados. El diseño de la memoria es así, donde "
@@ -1371,6 +1395,10 @@ msgid ""
1371
1395
"performance characteristics. Initially developed by Daan Leijen for the "
1372
1396
"runtime systems of the Koka and Lean languages.\" "
1373
1397
msgstr ""
1398
+ "Python admite el asignador mimalloc cuando la plataforma subyacente lo "
1399
+ "admite. mimalloc \" es un asignador de propósito general con excelentes "
1400
+ "característicos de rendimiento. Desarrollado originalmente por Daan Leijen "
1401
+ "para los sistemas de tiempo de ejecución de las lenguajes Koka y Lean\" "
1374
1402
1375
1403
#: ../Doc/c-api/memory.rst:699
1376
1404
msgid "tracemalloc C API"
@@ -1434,6 +1462,15 @@ msgid ""
1434
1462
"PyMem_Free(buf); /* allocated with PyMem_Malloc */\n"
1435
1463
"return res;"
1436
1464
msgstr ""
1465
+ "PyObject *res;\n"
1466
+ "char *buf = (char *) PyMem_Malloc(BUFSIZ); /* for I/O */\n"
1467
+ "\n"
1468
+ "if (buf == NULL)\n"
1469
+ " return PyErr_NoMemory();\n"
1470
+ "/* ...Do some I/O operation involving buf... */\n"
1471
+ "res = PyBytes_FromString(buf);\n"
1472
+ "PyMem_Free(buf); /* allocated with PyMem_Malloc */\n"
1473
+ "return res;"
1437
1474
1438
1475
#: ../Doc/c-api/memory.rst:738
1439
1476
msgid "The same code using the type-oriented function set::"
@@ -1452,6 +1489,15 @@ msgid ""
1452
1489
"PyMem_Del(buf); /* allocated with PyMem_New */\n"
1453
1490
"return res;"
1454
1491
msgstr ""
1492
+ "PyObject *res;\n"
1493
+ "char *buf = PyMem_New(char, BUFSIZ); /* for I/O */\n"
1494
+ "\n"
1495
+ "if (buf == NULL)\n"
1496
+ " return PyErr_NoMemory();\n"
1497
+ "/* ...Do some I/O operation involving buf... */\n"
1498
+ "res = PyBytes_FromString(buf);\n"
1499
+ "PyMem_Del(buf); /* allocated with PyMem_New */\n"
1500
+ "return res;"
1455
1501
1456
1502
#: ../Doc/c-api/memory.rst:750
1457
1503
msgid ""
@@ -1480,6 +1526,13 @@ msgid ""
1480
1526
"free(buf2); /* Right -- allocated via malloc() */\n"
1481
1527
"free(buf1); /* Fatal -- should be PyMem_Del() */"
1482
1528
msgstr ""
1529
+ "char *buf1 = PyMem_New(char, BUFSIZ);\n"
1530
+ "char *buf2 = (char *) malloc(BUFSIZ);\n"
1531
+ "char *buf3 = (char *) PyMem_Malloc(BUFSIZ);\n"
1532
+ "...\n"
1533
+ "PyMem_Del(buf3); /* Incorrecto -- debe ser PyMem_Free() */\n"
1534
+ "free(buf2); /* Correcto -- asignado por malloc() */\n"
1535
+ "free(buf1); /* Fatal -- debe ser PyMem_Del() */"
1483
1536
1484
1537
#: ../Doc/c-api/memory.rst:765
1485
1538
#, fuzzy
@@ -1502,16 +1555,16 @@ msgstr ""
1502
1555
1503
1556
#: ../Doc/c-api/memory.rst:43
1504
1557
msgid "malloc (C function)"
1505
- msgstr ""
1558
+ msgstr "malloc (Función de C) "
1506
1559
1507
1560
#: ../Doc/c-api/memory.rst:43
1508
1561
msgid "calloc (C function)"
1509
- msgstr ""
1562
+ msgstr "calloc (Función de C) "
1510
1563
1511
1564
#: ../Doc/c-api/memory.rst:43
1512
1565
msgid "realloc (C function)"
1513
- msgstr ""
1566
+ msgstr "realloc (Función de C) "
1514
1567
1515
1568
#: ../Doc/c-api/memory.rst:43
1516
1569
msgid "free (C function)"
1517
- msgstr ""
1570
+ msgstr "free (Función de C) "
0 commit comments