@@ -11,7 +11,7 @@ msgstr ""
11
11
"Project-Id-Version : Python 3.8\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"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 "
15
15
"Last-Translator : \n "
16
16
"Language : es\n "
17
17
"Language-Team : python-doc-esMIME-Version: 1.0\n "
@@ -3258,6 +3258,8 @@ msgid ""
3258
3258
"This is an advanced function that is not needed in everyday Python "
3259
3259
"programming, unlike :func:`importlib.import_module`."
3260
3260
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`."
3261
3263
3262
3264
#: ../Doc/library/functions.rst:1774
3263
3265
msgid ""
@@ -3270,6 +3272,15 @@ msgid ""
3270
3272
"implementation is in use. Direct use of :func:`__import__` is also "
3271
3273
"discouraged in favor of :func:`importlib.import_module`."
3272
3274
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`."
3273
3284
3274
3285
#: ../Doc/library/functions.rst:1783
3275
3286
msgid ""
@@ -3280,6 +3291,13 @@ msgid ""
3280
3291
"does not use its *locals* argument at all, and uses its *globals* only to "
3281
3292
"determine the package context of the :keyword:`import` statement."
3282
3293
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`."
3283
3301
3284
3302
#: ../Doc/library/functions.rst:1790
3285
3303
msgid ""
@@ -3289,6 +3307,11 @@ msgid ""
3289
3307
"directory of the module calling :func:`__import__` (see :pep:`328` for the "
3290
3308
"details)."
3291
3309
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)."
3292
3315
3293
3316
#: ../Doc/library/functions.rst:1796
3294
3317
msgid ""
@@ -3297,41 +3320,57 @@ msgid ""
3297
3320
"module named by *name*. However, when a non-empty *fromlist* argument is "
3298
3321
"given, the module named by *name* is returned."
3299
3322
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."
3300
3327
3301
3328
#: ../Doc/library/functions.rst:1801
3302
3329
msgid ""
3303
3330
"For example, the statement ``import spam`` results in bytecode resembling "
3304
3331
"the following code::"
3305
3332
msgstr ""
3333
+ "Por ejemplo, la declaración ``import spam`` resulta en un bytecode similar "
3334
+ "al siguiente código::"
3306
3335
3307
3336
#: ../Doc/library/functions.rst:1806
3308
3337
msgid "The statement ``import spam.ham`` results in this call::"
3309
- msgstr ""
3338
+ msgstr "La declaración ``import spam.ham`` resulta en esta llamada:: "
3310
3339
3311
3340
#: ../Doc/library/functions.rst:1810
3312
3341
msgid ""
3313
3342
"Note how :func:`__import__` returns the toplevel module here because this is "
3314
3343
"the object that is bound to a name by the :keyword:`import` statement."
3315
3344
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`."
3316
3348
3317
3349
#: ../Doc/library/functions.rst:1813
3318
3350
msgid ""
3319
3351
"On the other hand, the statement ``from spam.ham import eggs, sausage as "
3320
3352
"saus`` results in ::"
3321
3353
msgstr ""
3354
+ "Por otra parte, la declaración ``from spam.ham import eggs, sausage as "
3355
+ "saus`` resulta en ::"
3322
3356
3323
3357
#: ../Doc/library/functions.rst:1820
3324
3358
msgid ""
3325
3359
"Here, the ``spam.ham`` module is returned from :func:`__import__`. From "
3326
3360
"this object, the names to import are retrieved and assigned to their "
3327
3361
"respective names."
3328
3362
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."
3329
3366
3330
3367
#: ../Doc/library/functions.rst:1824
3331
3368
msgid ""
3332
3369
"If you simply want to import a module (potentially within a package) by "
3333
3370
"name, use :func:`importlib.import_module`."
3334
3371
msgstr ""
3372
+ "Si simplemente quieres importar un módulo (potencialmente dentro de un "
3373
+ "paquete) por nombre, usa :func:`importlib.import_module`."
3335
3374
3336
3375
#: ../Doc/library/functions.rst:1827
3337
3376
msgid ""
0 commit comments