@@ -337,6 +337,11 @@ msgid ""
337
337
"collector is not involved and :c:member:`~PyModuleDef.m_free` is called "
338
338
"directly."
339
339
msgstr ""
340
+ "Tal como :c:member:`PyTypeObject.tp_clear`, esta función no *siempre* es "
341
+ "llamada antes de la designación de un módulo. Por ejemplo, cuando el "
342
+ "recuento de referencias está listo para determinar que un objeto no se usa "
343
+ "más, la recolección de basura cíclica no se involucra y se llama a :c:member:"
344
+ "`~PyModuleDef.m_free` directamente."
340
345
341
346
#: ../Doc/c-api/module.rst:235
342
347
msgid ""
@@ -714,41 +719,54 @@ msgstr ""
714
719
msgid ""
715
720
"On success, return ``0``. On error, raise an exception and return ``-1``."
716
721
msgstr ""
722
+ "En caso de éxito, retorna ``0``. En caso de error, lanza una excepción y "
723
+ "retorna ``-1``."
717
724
718
725
#: ../Doc/c-api/module.rst:454
719
726
msgid ""
720
727
"Return ``NULL`` if *value* is ``NULL``. It must be called with an exception "
721
728
"raised in this case."
722
729
msgstr ""
730
+ "Retorna ``NULL`` si *value* es ``NULL``. Debe llamarse lanzando una "
731
+ "excepción en este caso."
723
732
724
733
#: ../Doc/c-api/module.rst:457 ../Doc/c-api/module.rst:506
725
734
msgid "Example usage::"
726
- msgstr ""
735
+ msgstr "Ejemplo de uso :: "
727
736
728
737
#: ../Doc/c-api/module.rst:471 ../Doc/c-api/module.rst:524
729
738
msgid ""
730
739
"The example can also be written without checking explicitly if *obj* is "
731
740
"``NULL``::"
732
741
msgstr ""
742
+ "El ejemplo puede también ser escrito sin verificar explicitamente si *obj* "
743
+ "es ``NULL``::"
733
744
734
745
#: ../Doc/c-api/module.rst:483 ../Doc/c-api/module.rst:540
735
746
msgid ""
736
747
"Note that ``Py_XDECREF()`` should be used instead of ``Py_DECREF()`` in this "
737
748
"case, since *obj* can be ``NULL``."
738
749
msgstr ""
750
+ "Note que ``Py_XDECREF()`` debería ser usado en vez de ``Py_DECREF()`` en "
751
+ "este caso, ya que *obj* puede ser ``NULL``."
739
752
740
753
#: ../Doc/c-api/module.rst:491
741
754
msgid ""
742
755
"Similar to :c:func:`PyModule_AddObjectRef`, but steals a reference to "
743
756
"*value* on success (if it returns ``0``)."
744
757
msgstr ""
758
+ "Similar a :c:func:`PyModule_AddObjectRef`, pero roba una referencia a "
759
+ "*value* en caso de éxito (en este caso retorna ``0``)."
745
760
746
761
#: ../Doc/c-api/module.rst:494
747
762
msgid ""
748
763
"The new :c:func:`PyModule_AddObjectRef` function is recommended, since it is "
749
764
"easy to introduce reference leaks by misusing the :c:func:"
750
765
"`PyModule_AddObject` function."
751
766
msgstr ""
767
+ "Se recomienda la nueva función :c:func:`PyModule_AddObjectRef`, ya que es "
768
+ "sencillo introducir fugas de referencias por un uso incorrecto de la "
769
+ "función :c:func:`PyModule_AddObject`."
752
770
753
771
#: ../Doc/c-api/module.rst:500
754
772
msgid ""
0 commit comments