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/python/python-docs-es/blob/3.8/TRANSLATORS to get the list of volunteers
66#
7- #, fuzzy
87msgid ""
98msgstr ""
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-10-08 06:30-0500\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_EC\n "
20+ "X-Generator : Poedit 2.4.1\n "
1921
2022#: ../Doc/library/runpy.rst:2
2123msgid ":mod:`runpy` --- Locating and executing Python modules"
22- msgstr ""
24+ msgstr ":mod:`runpy` --- Localización y ejecución de módulos *Python* "
2325
2426#: ../Doc/library/runpy.rst:9
2527msgid "**Source code:** :source:`Lib/runpy.py`"
26- msgstr ""
28+ msgstr "**Código Fuente:** :source:`Lib/runpy.py` "
2729
2830#: ../Doc/library/runpy.rst:13
2931msgid ""
@@ -32,13 +34,22 @@ msgid ""
3234"line switch that allows scripts to be located using the Python module "
3335"namespace rather than the filesystem."
3436msgstr ""
37+ "El modulo :mod:`runpy` es usado para localizar y correr módulos *Python* "
38+ "sin importarlo primero. Su uso principal es implementar la opción :option:`-"
39+ "m` cambiando la linea de comando que permite que los scripts se ubiquen "
40+ "utilizando el espacio de nombres del módulo de Python en lugar del sistema "
41+ "de archivos."
3542
3643#: ../Doc/library/runpy.rst:18
3744msgid ""
3845"Note that this is *not* a sandbox module - all code is executed in the "
3946"current process, and any side effects (such as cached imports of other "
4047"modules) will remain in place after the functions have returned."
4148msgstr ""
49+ "Tenga en cuenta que este *no* es un módulo de espacio aislado - Todo el "
50+ "código es ejecutado en el proceso actual, y cualquier efecto secundario "
51+ "(como las importaciones en cache de otros módulos) permanecerán en su lugar "
52+ "después de que las funciones hayan retornado."
4253
4354#: ../Doc/library/runpy.rst:22
4455msgid ""
@@ -47,10 +58,15 @@ msgid ""
4758"that limitation is not acceptable for a given use case, :mod:`importlib` is "
4859"likely to be a more suitable choice than this module."
4960msgstr ""
61+ "Además, no se garantiza que las funciones y clases definidas por el código "
62+ "ejecutado funcionen correctamente después de que se haya devuelto la "
63+ "función :mod:`runpy`. Si esa limitación no es aceptable para un caso de uso "
64+ "determinado, es probable que :mod:`importlib` sea una opción más adecuada "
65+ "que este módulo."
5066
5167#: ../Doc/library/runpy.rst:27
5268msgid "The :mod:`runpy` module provides two functions:"
53- msgstr ""
69+ msgstr "El modulo :mod:`runpy` proporciona dos funciones: "
5470
5571#: ../Doc/library/runpy.rst:35
5672msgid ""
@@ -59,6 +75,11 @@ msgid ""
5975"import mechanism (refer to :pep:`302` for details) and then executed in a "
6076"fresh module namespace."
6177msgstr ""
78+ "Ejecute el código del módulo especificado y devuelva el diccionario de "
79+ "globales de módulo resultante. El código del módulo se encuentra primero "
80+ "mediante el mecanismo de importación estándar (consulte :p ep:'302' para "
81+ "obtener más información) y, a continuación, se ejecuta en un espacio de "
82+ "nombres de módulo nuevo."
6283
6384#: ../Doc/library/runpy.rst:40
6485msgid ""
@@ -67,6 +88,10 @@ msgid ""
6788"imported and the ``__main__`` submodule within that package is then executed "
6889"and the resulting module globals dictionary returned."
6990msgstr ""
91+ "El argumento *mod_name* debe ser un nombre de módulo absoluto. Si el nombre "
92+ "del paquete se refiere a un paquete en lugar de un módulo normal, entonces "
93+ "ese paquete es importado y el submódulo ``__main__`` dentro de ese paquete "
94+ "luego se ejecuta y se devuelve el diccionario global del módulo resultante."
7095
7196#: ../Doc/library/runpy.rst:46
7297msgid ""
@@ -76,6 +101,11 @@ msgid ""
76101"below are defined in the supplied dictionary, those definitions are "
77102"overridden by :func:`run_module`."
78103msgstr ""
104+ "El argumento de diccionario opcional *init_globals* se puede utilizar para "
105+ "rellenar previamente el diccionario global del módulo antes de ejecutar el "
106+ "código. El diccionario suministrado no se modificará. Si alguna de las "
107+ "variables globales especiales siguientes se define en el diccionario "
108+ "proporcionado, esas definiciones se reemplazan por :func:`run_module`."
79109
80110#: ../Doc/library/runpy.rst:52 ../Doc/library/runpy.rst:121
81111msgid ""
@@ -85,26 +115,40 @@ msgid ""
85115"set of variables - other variables may be set implicitly as an interpreter "
86116"implementation detail)."
87117msgstr ""
118+ "Las variables globales especiales ``__name__``, ``__spec__``, ``__file__``, "
119+ "``__cached__``, ``__loader__`` y ``__package__`` se establecen en el "
120+ "diccionario global antes del que el código del módulo sea ejecutado (tenga "
121+ "en cuenta que esto es un conjunto mínimo de variables - otras variables "
122+ "pueden establecerse implícitamente como un detalle de implementación del "
123+ "intérprete)."
88124
89125#: ../Doc/library/runpy.rst:58
90126msgid ""
91127"``__name__`` is set to *run_name* if this optional argument is not :const:"
92128"`None`, to ``mod_name + '.__main__'`` if the named module is a package and "
93129"to the *mod_name* argument otherwise."
94130msgstr ""
131+ "``__name__`` se establece en *run_name* si el argumento opcional no es :"
132+ "const:`None`, para `mod_name + ‘.__main__’`` si módulo nombrado es un "
133+ "paquete y al argumento *mod_name* en caso contrario."
95134
96135#: ../Doc/library/runpy.rst:62
97136msgid ""
98137"``__spec__`` will be set appropriately for the *actually* imported module "
99138"(that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + '."
100139"__main__``, never *run_name*)."
101140msgstr ""
141+ "``__spec__`` se configura apropiadamente para el modulo *realmente* "
142+ "importado (es decir, ``__spec__.name`` siempre será un *mod_name* o "
143+ "``mod_name + ‘.__main__``, jamas *run_name*)."
102144
103145#: ../Doc/library/runpy.rst:66
104146msgid ""
105147"``__file__``, ``__cached__``, ``__loader__`` and ``__package__`` are :ref:"
106148"`set as normal <import-mod-attrs>` based on the module spec."
107149msgstr ""
150+ "``__file__``, ``__cached__``, ``__loader__`` y ``__package__`` son basados "
151+ "en la especificación del modulo :ref:`set as normal <import-mod-attrs>`."
108152
109153#: ../Doc/library/runpy.rst:69
110154msgid ""
@@ -114,6 +158,12 @@ msgid ""
114158"being executed. Both ``sys.argv[0]`` and ``sys.modules[__name__]`` are "
115159"restored to their original values before the function returns."
116160msgstr ""
161+ "Si el argumento *alter_sys* es proporcionado y evaluado a :const:`True`, "
162+ "entonces ``sys.argv[0]`` es actualizado y el valor de ``__file__`` y ``sys."
163+ "modules[__name__]`` es actualizado con un objeto de módulo temporal para el "
164+ "módulo que se esta ejecutado. Ambas `sys.argv[0]`` y ``sys."
165+ "modules[__name__]`` son restauradas a sus valores originales antes del "
166+ "retorno de la función."
117167
118168#: ../Doc/library/runpy.rst:75
119169msgid ""
@@ -122,21 +172,29 @@ msgid ""
122172"arguments. It is recommended that the :mod:`sys` module be left alone when "
123173"invoking this function from threaded code."
124174msgstr ""
175+ "Tenga en cuenta que esta manipulación de :mod:`sys` no es segura para "
176+ "subprocesos. Otros subprocesos pueden ver el módulo parcialmente "
177+ "inicializado, así como la lista alterada de argumentos. Se recomienda que el "
178+ "módulo :mod:`sys` se deje solo al invocar esta función desde código roscado."
125179
126180#: ../Doc/library/runpy.rst:81
127181msgid ""
128182"The :option:`-m` option offering equivalent functionality from the command "
129183"line."
130184msgstr ""
185+ "La opción :option:`-m` ofrece una funcionalidad equivalente desde la linea "
186+ "de comandos."
131187
132188#: ../Doc/library/runpy.rst:84
133189msgid ""
134190"Added ability to execute packages by looking for a ``__main__`` submodule."
135191msgstr ""
192+ "Se agrego la capacidad de ejecutar paquetes buscando un submódulo "
193+ "``__main__``."
136194
137195#: ../Doc/library/runpy.rst:87
138196msgid "Added ``__cached__`` global variable (see :pep:`3147`)."
139- msgstr ""
197+ msgstr "Se agrego la variable global ``__cached__`` (consultar :pep:`3147`). "
140198
141199#: ../Doc/library/runpy.rst:90
142200msgid ""
@@ -145,6 +203,11 @@ msgid ""
145203"well as ensuring the real module name is always accessible as ``__spec__."
146204"name``."
147205msgstr ""
206+ "Se ha actualizado para aprovechar la función de especificación de módulo "
207+ "agregada por :pep:'451'. Esto permite que ''__cached__'' se establezca "
208+ "correctamente para que los módulos se ejecuten de esta manera, así como "
209+ "asegurarse de que el nombre real del módulo siempre sea accesible como "
210+ "''__spec__.name''."
148211
149212#: ../Doc/library/runpy.rst:101
150213msgid ""
@@ -154,6 +217,13 @@ msgid ""
154217"compiled bytecode file or a valid sys.path entry containing a ``__main__`` "
155218"module (e.g. a zipfile containing a top-level ``__main__.py`` file)."
156219msgstr ""
220+ "Ejecute el código en la ubicación del sistema de archivos con nombre y "
221+ "devuelva el diccionario de globales de módulo resultante. Al igual que con "
222+ "un nombre de script proporcionado a la línea de comandos de CPython, la ruta "
223+ "de acceso proporcionada puede hacer referencia a un archivo de origen de "
224+ "Python, un archivo de código de bytes compilado o una entrada sys.path "
225+ "válida que contiene un módulo ''__main__'' (por ejemplo, un archivo zip que "
226+ "contiene un archivo ''__main__.py'' de nivel superior)."
157227
158228#: ../Doc/library/runpy.rst:107
159229msgid ""
@@ -165,6 +235,14 @@ msgid ""
165235"`__main__` entry located elsewhere on ``sys.path`` if there is no such "
166236"module at the specified location."
167237msgstr ""
238+ "Para un *script* simple, el código especificado se ejecuta simplemente en un "
239+ "espacio de nombres de un módulo nuevo. Para un entrada *sys.path* valida "
240+ "(comúnmente es un archivo *zip* o un directorio), la entrada se agrega "
241+ "primero al comienzo de ``sys.path``. La función busca y ejecuta un modulo :"
242+ "mod:`__main__` usando la ruta actualizada. Tenga en cuenta que no existe una "
243+ "protección especial contra la invocación de una entrada existente :mod:"
244+ "`__main__` ubicada en otro lugar en ``sys.path`` si no hay tal módulo en la "
245+ "ubicación especificada."
168246
169247#: ../Doc/library/runpy.rst:115
170248msgid ""
@@ -174,12 +252,19 @@ msgid ""
174252"below are defined in the supplied dictionary, those definitions are "
175253"overridden by :func:`run_path`."
176254msgstr ""
255+ "El argumento de diccionario opcional *init_globals* se puede utilizar para "
256+ "rellenar previamente el diccionario global del módulo antes de ejecutar el "
257+ "código. El diccionario suministrado no se modificará. Si alguna de las "
258+ "variables globales especiales siguientes se define en el diccionario "
259+ "proporcionado, esas definiciones se reemplazan por :func:`run_path`."
177260
178261#: ../Doc/library/runpy.rst:127
179262msgid ""
180263"``__name__`` is set to *run_name* if this optional argument is not :const:"
181264"`None` and to ``'<run_path>'`` otherwise."
182265msgstr ""
266+ "``__name__`` se establece para *run_name* si el argumento opcional no es :"
267+ "const:`None` y a ``'<run_path>'`` de lo contrario."
183268
184269#: ../Doc/library/runpy.rst:130
185270msgid ""
@@ -188,6 +273,10 @@ msgid ""
188273"path, and ``__spec__``, ``__cached__``, ``__loader__`` and ``__package__`` "
189274"will all be set to :const:`None`."
190275msgstr ""
276+ "Si la ruta proporcionada hace referencia a un archivo *script* (ya sea como "
277+ "fuente o un código de *byte* precompilado), entonces ``__file__`` se "
278+ "establecerá en la ruta proporcionada, y ``__spec__``, ``__cached__``, "
279+ "``__loader__`` y ``__package__`` se establecerán todos en :const:`None`."
191280
192281#: ../Doc/library/runpy.rst:135
193282msgid ""
@@ -197,6 +286,12 @@ msgid ""
197286"``__cached__``, ``__loader__`` and ``__package__`` will be :ref:`set as "
198287"normal <import-mod-attrs>` based on the module spec."
199288msgstr ""
289+ "Si la ruta proporciona es una referencia a una entrada *sys.path* valida, "
290+ "entonces ``__spec__`` se establece apropiadamente para la importación del "
291+ "modulo ``__main__``(es decir, ``__spec__.name`` siempre deberá ser "
292+ "``__main__``). ``__file__``, ``__cached__``, ``__loader__`` y "
293+ "``__package__`` estarán basadas en la especificación del modulo :ref:"
294+ "`establecidas como normal <import-mod-attrs>`."
200295
201296#: ../Doc/library/runpy.rst:141
202297msgid ""
@@ -207,6 +302,12 @@ msgid ""
207302"modifications to items in :mod:`sys` are reverted before the function "
208303"returns."
209304msgstr ""
305+ "También se realizan una serie de alteraciones en el módulo :mod:`sys`. En "
306+ "primer lugar, ``sys.path`` puede ser alterado como se describió "
307+ "anteriormente. ``sys.argv[0]`` se actualiza con el valor de ``file_path`` y "
308+ "``sys.modules[__name__]`` se actualiza con un objeto de módulo temporal para "
309+ "el módulo que se está ejecutando. Todas las modificaciones de los elementos "
310+ "de :mod:`sys` se revierten antes de que se devuelva la función."
210311
211312#: ../Doc/library/runpy.rst:148
212313msgid ""
@@ -216,12 +317,20 @@ msgid ""
216317"apply, use of this function in threaded code should be either serialised "
217318"with the import lock or delegated to a separate process."
218319msgstr ""
320+ "Tenga en cuenta que, diferente a :func:`run_module`, las alteraciones hecha "
321+ "a :mod:`sys` no son opcionales en esta función ya que estos ajustes son "
322+ "esenciales para permitir la ejecución de entradas *sys.path*. Como aún se "
323+ "aplican las limitaciones de seguridad de los subprocesos, el uso de esta "
324+ "función en un código procesado debe serializarse con el bloqueo de "
325+ "importación o delegarse a un proceso separado."
219326
220327#: ../Doc/library/runpy.rst:155
221328msgid ""
222329":ref:`using-on-interface-options` for equivalent functionality on the "
223330"command line (``python path/to/script``)."
224331msgstr ""
332+ ":ref:`using-on-interface-options` para una funcionalidad equivalente en la "
333+ "linea de comandos (``python path/to/script``)."
225334
226335#: ../Doc/library/runpy.rst:160
227336msgid ""
@@ -230,31 +339,35 @@ msgid ""
230339"``__main__`` is imported from a valid sys.path entry rather than being "
231340"executed directly."
232341msgstr ""
342+ "Actualizado para aprovechar la función de especificación del módulo agregada "
343+ "por :pep:`451`. Esto permite que ``__cached__`` se configure correctamente "
344+ "en el caso de que ``__main__`` se importe de una entrada *sys.path* valida "
345+ "en lugar de ejecutarse directamente."
233346
234347#: ../Doc/library/runpy.rst:169
235348msgid ":pep:`338` -- Executing modules as scripts"
236- msgstr ""
349+ msgstr ":pep:`338` -- Ejecutando módulos como *scripts* "
237350
238351#: ../Doc/library/runpy.rst:169 ../Doc/library/runpy.rst:172
239352msgid "PEP written and implemented by Nick Coghlan."
240- msgstr ""
353+ msgstr "*PEP* escrito y implementado por *Nick Coghlan*. "
241354
242355#: ../Doc/library/runpy.rst:172
243356msgid ":pep:`366` -- Main module explicit relative imports"
244- msgstr ""
357+ msgstr ":pep:`366` -- Importaciones relativas explícitas del módulo principal "
245358
246359#: ../Doc/library/runpy.rst:175
247360msgid ":pep:`451` -- A ModuleSpec Type for the Import System"
248- msgstr ""
361+ msgstr ":pep:`451` — Un tipo *ModuleSpec* para el sistema de Importación "
249362
250363#: ../Doc/library/runpy.rst:175
251364msgid "PEP written and implemented by Eric Snow"
252- msgstr ""
365+ msgstr "*PEP* escrito y implementado por *Eric Snow* "
253366
254367#: ../Doc/library/runpy.rst:177
255368msgid ":ref:`using-on-general` - CPython command line details"
256- msgstr ""
369+ msgstr ":ref:`using-on-general` - Detalles de la linea de comandos *CPython* "
257370
258371#: ../Doc/library/runpy.rst:179
259372msgid "The :func:`importlib.import_module` function"
260- msgstr ""
373+ msgstr "La función :func:`importlib.import_module` "
0 commit comments