Skip to content

Commit c1516fe

Browse files
committed
almost there
1 parent 092cbb0 commit c1516fe

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

library/functions.po

+41-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2020-05-07 14:37+0200\n"
14-
"PO-Revision-Date: 2020-06-06 19:43+0200\n"
14+
"PO-Revision-Date: 2020-06-08 20:37+0200\n"
1515
"Last-Translator: \n"
1616
"Language: es\n"
1717
"Language-Team: python-doc-esMIME-Version: 1.0\n"
@@ -3258,6 +3258,8 @@ msgid ""
32583258
"This is an advanced function that is not needed in everyday Python "
32593259
"programming, unlike :func:`importlib.import_module`."
32603260
msgstr ""
3261+
"Ésta es una función avanzada que no se necesita en el uso cotidiano de "
3262+
"programación en Python, a diferencia de :func:`importlib.import_module`."
32613263

32623264
#: ../Doc/library/functions.rst:1774
32633265
msgid ""
@@ -3270,6 +3272,15 @@ msgid ""
32703272
"implementation is in use. Direct use of :func:`__import__` is also "
32713273
"discouraged in favor of :func:`importlib.import_module`."
32723274
msgstr ""
3275+
"Esta función es invocada por la declaración :keyword:`import`. Puede ser "
3276+
"reemplazada para cambiar la semántica de la declaración :keyword:`!import` "
3277+
"(mediante la importación del módulo :mod:`builtins` y su asignación a "
3278+
"``builtins.__import__``), pero esto está **fuertemente** no recomendado ya "
3279+
"que es normalmente mucho más simple usar ganchos (*hooks*) de importación "
3280+
"(ver :pep:`302`) para obtener las mismas metas y sin causar problemas en "
3281+
"código que asume que la implementación por defecto de importaciones está "
3282+
"siendo utilizada. El uso directo de :func:`__import__` tampoco está "
3283+
"recomendado y se prefiere :func:`importlib.import_module`."
32733284

32743285
#: ../Doc/library/functions.rst:1783
32753286
msgid ""
@@ -3280,6 +3291,13 @@ msgid ""
32803291
"does not use its *locals* argument at all, and uses its *globals* only to "
32813292
"determine the package context of the :keyword:`import` statement."
32823293
msgstr ""
3294+
"La función importa el módulo *name*, usando potencialmente las *globals* y "
3295+
"*locals* indicadas para determinar como interpretar el nombre en el contexto "
3296+
"de un paquete. *fromlist* indica los nombres de objetos o submódulos que "
3297+
"deberían ser importados del módulo indicado por *name*. La implementación "
3298+
"estándar no utiliza su argumento *locals* para nada, y usa *globals* solo "
3299+
"para determinar el contexto en un paquete de la declaración :keyword:"
3300+
"`import`."
32833301

32843302
#: ../Doc/library/functions.rst:1790
32853303
msgid ""
@@ -3289,6 +3307,11 @@ msgid ""
32893307
"directory of the module calling :func:`__import__` (see :pep:`328` for the "
32903308
"details)."
32913309
msgstr ""
3310+
"*level* especifica si usar importaciones absolutas o relativas. ``0`` (por "
3311+
"defecto) significa sólo realizar importaciones absolutas. Valores positivos "
3312+
"de *level* indican el número de directorios progenitores relativos al del "
3313+
"módulo para buscar llamando a :func:`__import__` (ver :pep:`328` para los "
3314+
"detalles)."
32923315

32933316
#: ../Doc/library/functions.rst:1796
32943317
msgid ""
@@ -3297,41 +3320,57 @@ msgid ""
32973320
"module named by *name*. However, when a non-empty *fromlist* argument is "
32983321
"given, the module named by *name* is returned."
32993322
msgstr ""
3323+
"Cuando la variable *name* tiene la forma ``package.module``, normalmente el "
3324+
"paquete del nivel más alto (el nombre hasta el primer punto) se devuelve, "
3325+
"*no* el modulo llamado por *name*. Sin embargo, cuando un argumento "
3326+
"*fromlist* no vacío es indicado, el módulo llamado por *name* es retornado."
33003327

33013328
#: ../Doc/library/functions.rst:1801
33023329
msgid ""
33033330
"For example, the statement ``import spam`` results in bytecode resembling "
33043331
"the following code::"
33053332
msgstr ""
3333+
"Por ejemplo, la declaración ``import spam`` resulta en un bytecode similar "
3334+
"al siguiente código::"
33063335

33073336
#: ../Doc/library/functions.rst:1806
33083337
msgid "The statement ``import spam.ham`` results in this call::"
3309-
msgstr ""
3338+
msgstr "La declaración ``import spam.ham`` resulta en esta llamada::"
33103339

33113340
#: ../Doc/library/functions.rst:1810
33123341
msgid ""
33133342
"Note how :func:`__import__` returns the toplevel module here because this is "
33143343
"the object that is bound to a name by the :keyword:`import` statement."
33153344
msgstr ""
3345+
"Nótese cómo :func:`__import__` retorna el módulo del nivel superior en este "
3346+
"caso porque este es el objeto que está enlazado a un nombre por la "
3347+
"declaración :keyword:`import`."
33163348

33173349
#: ../Doc/library/functions.rst:1813
33183350
msgid ""
33193351
"On the other hand, the statement ``from spam.ham import eggs, sausage as "
33203352
"saus`` results in ::"
33213353
msgstr ""
3354+
"Por otra parte, la declaración ``from spam.ham import eggs, sausage as "
3355+
"saus`` resulta en ::"
33223356

33233357
#: ../Doc/library/functions.rst:1820
33243358
msgid ""
33253359
"Here, the ``spam.ham`` module is returned from :func:`__import__`. From "
33263360
"this object, the names to import are retrieved and assigned to their "
33273361
"respective names."
33283362
msgstr ""
3363+
"Aquí, el módulo ``spam.ham`` es retornado desde :func:`__import__`. Desde "
3364+
"este objeto, los nombres a importar son obtenidos y asignados a sus nombres "
3365+
"respectivos."
33293366

33303367
#: ../Doc/library/functions.rst:1824
33313368
msgid ""
33323369
"If you simply want to import a module (potentially within a package) by "
33333370
"name, use :func:`importlib.import_module`."
33343371
msgstr ""
3372+
"Si simplemente quieres importar un módulo (potencialmente dentro de un "
3373+
"paquete) por nombre, usa :func:`importlib.import_module`."
33353374

33363375
#: ../Doc/library/functions.rst:1827
33373376
msgid ""

0 commit comments

Comments
 (0)