Skip to content

Commit 8570979

Browse files
committed
a few more functions on attributes, help, hex, id
1 parent 7fbcc1d commit 8570979

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

library/functions.po

+58-1
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-05-15 18:57+0200\n"
14+
"PO-Revision-Date: 2020-05-16 01:49+0200\n"
1515
"Last-Translator: \n"
1616
"Language: es\n"
1717
"Language-Team: python-doc-esMIME-Version: 1.0\n"
@@ -1233,6 +1233,12 @@ msgid ""
12331233
"exist, *default* is returned if provided, otherwise :exc:`AttributeError` is "
12341234
"raised."
12351235
msgstr ""
1236+
"Devuelve el valor del atributo nombrado de *object*. *name* debe ser una "
1237+
"cadena. Si la cadena es el nombre de uno de los atributos del objeto, el "
1238+
"resultado es el valor de ese atributo. Por ejemplo, ``getattr(x, ‘foobar’)`` "
1239+
"es equivalente a ``x.foobar``. Si el atributo nombrado no existe, se "
1240+
"devuelve *default* si ha sido proporcionado como argumento, y sino se lanza "
1241+
"una excepción :exc:`AttributeError`."
12361242

12371243
#: ../Doc/library/functions.rst:682
12381244
msgid ""
@@ -1241,6 +1247,9 @@ msgid ""
12411247
"this is the module where it is defined, not the module from which it is "
12421248
"called)."
12431249
msgstr ""
1250+
"Devuelve un diccionario que representa la tabla global de símbolos. Es "
1251+
"siempre el diccionario del módulo actual (dentro de una función o método, "
1252+
"este es el módulo donde está definida, no el módulo desde el que es llamada)."
12441253

12451254
#: ../Doc/library/functions.rst:689
12461255
msgid ""
@@ -1249,21 +1258,37 @@ msgid ""
12491258
"(This is implemented by calling ``getattr(object, name)`` and seeing whether "
12501259
"it raises an :exc:`AttributeError` or not.)"
12511260
msgstr ""
1261+
"Los argumentos son un objeto y una cadena. El resultado es ``True`` si la "
1262+
"cadena es el nombre de uno de los atributos del objeto, y ``False`` en caso "
1263+
"contrario. (Está implementado mediante una llamada a ``getattr(object, "
1264+
"name)`` que comprueba si se lanza una excepción :exc:`AttributeError` o no)."
12521265

1266+
# no estoy segura de si valor hash es correcto, pero es uno de esos términos que me suenan mejor en inglés
12531267
#: ../Doc/library/functions.rst:697
1268+
#, fuzzy
12541269
msgid ""
12551270
"Return the hash value of the object (if it has one). Hash values are "
12561271
"integers. They are used to quickly compare dictionary keys during a "
12571272
"dictionary lookup. Numeric values that compare equal have the same hash "
12581273
"value (even if they are of different types, as is the case for 1 and 1.0)."
12591274
msgstr ""
1275+
"Devuelve el valor hash del objeto (si tiene uno). Los valores has son "
1276+
"enteros. Se usan para comparar de forma rápida claves de diccionarios "
1277+
"durante las operaciones de búsqueda. Valores numéricos que son iguales "
1278+
"tienen el mismo valor has (incluso si son de tipos diferentes, como es el "
1279+
"caso para 1 y 1.0)."
12601280

1281+
# tasa de bits…. creo que es el término correcto por lo que he buscado. Máquina anfitriona tengo serias dudas, pero host me resultaba demasiado spanglish…
12611282
#: ../Doc/library/functions.rst:704
1283+
#, fuzzy
12621284
msgid ""
12631285
"For objects with custom :meth:`__hash__` methods, note that :func:`hash` "
12641286
"truncates the return value based on the bit width of the host machine. See :"
12651287
"meth:`__hash__` for details."
12661288
msgstr ""
1289+
"Para objetos que implementan métodos :meth:`__hash__`, ten en cuenta que :"
1290+
"func:`hash` trunca el valor de retorno en base a la tasa de bits de la "
1291+
"máquina anfitriona. Ver :meth:`__hash__` para más detalles."
12671292

12681293
#: ../Doc/library/functions.rst:710
12691294
msgid ""
@@ -1274,6 +1299,13 @@ msgid ""
12741299
"documentation topic, and a help page is printed on the console. If the "
12751300
"argument is any other kind of object, a help page on the object is generated."
12761301
msgstr ""
1302+
"Invoca el sistema de ayuda integrado (built-in). (Esta función está indicada "
1303+
"para su uso interactivo). Si no se le da argumento, el sistema interactivo "
1304+
"de ayuda se inicia en la consola del intérprete. Si el argumento es una "
1305+
"cadena, entonces es buscada como nombre de un módulo, función, clase, "
1306+
"método, palabra clave o tema de documentación, y una página de ayuda es "
1307+
"impresa en la consola. Si el argumento es cualquier otro tipo de objeto, una "
1308+
"página de ayuda sobre el objeto es generada."
12771309

12781310
#: ../Doc/library/functions.rst:717
12791311
msgid ""
@@ -1282,43 +1314,64 @@ msgid ""
12821314
"positional-only. For more info, see :ref:`the FAQ entry on positional-only "
12831315
"parameters <faq-positional-only-arguments>`."
12841316
msgstr ""
1317+
"Ten en cuenta que si una barra(/) aparece en la lista de parámetros de una "
1318+
"función, al invocar :func:`help` significa que los parámetros anteriores a "
1319+
"la barra son solo posicionales. Para más información, puedes ver :ref:`the "
1320+
"FAQ entry on positional-only parameters <faq-positional-only-arguments>`."
12851321

12861322
#: ../Doc/library/functions.rst:722
12871323
msgid ""
12881324
"This function is added to the built-in namespace by the :mod:`site` module."
12891325
msgstr ""
1326+
"Esta función se añade al espacio de nombres built-in a través del módulo :"
1327+
"mod:`site`."
12901328

1329+
# no estoy muy segura de lo de callables por invocables
12911330
#: ../Doc/library/functions.rst:724
1331+
#, fuzzy
12921332
msgid ""
12931333
"Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported signatures "
12941334
"for callables are now more comprehensive and consistent."
12951335
msgstr ""
1336+
"Cambios a los módulos :mod:`pydoc` y :mod:`inspect` implican que las firmas "
1337+
"reportadas para objetos invocables son más completas y consistentes."
12961338

12971339
#: ../Doc/library/functions.rst:731
12981340
msgid ""
12991341
"Convert an integer number to a lowercase hexadecimal string prefixed with "
13001342
"\"0x\". If *x* is not a Python :class:`int` object, it has to define an :"
13011343
"meth:`__index__` method that returns an integer. Some examples:"
13021344
msgstr ""
1345+
"Convierte un número entero a una cadena hexadecimal de minúsculas con el "
1346+
"prefijo “0x”. Si *x* no es un objeto de la clase Python :class:`int`, tiene "
1347+
"que definir un método :meth:`__index__` que devuelva un entero. Algunos "
1348+
"ejemplos:"
13031349

13041350
#: ../Doc/library/functions.rst:740
13051351
msgid ""
13061352
"If you want to convert an integer number to an uppercase or lower "
13071353
"hexadecimal string with prefix or not, you can use either of the following "
13081354
"ways:"
13091355
msgstr ""
1356+
"Si quieres convertir un número entero a una cadena hexadecimal de mayúsculas "
1357+
"o minúsculas con prefijo o sin el, puedes usar cualquiera de las siguientes "
1358+
"formas:"
13101359

13111360
#: ../Doc/library/functions.rst:752
13121361
msgid ""
13131362
"See also :func:`int` for converting a hexadecimal string to an integer using "
13141363
"a base of 16."
13151364
msgstr ""
1365+
"Ver también :func:`int` para convertir una cadena hexadecimal a un entero "
1366+
"usando una base de 16."
13161367

13171368
#: ../Doc/library/functions.rst:757
13181369
msgid ""
13191370
"To obtain a hexadecimal string representation for a float, use the :meth:"
13201371
"`float.hex` method."
13211372
msgstr ""
1373+
"Para obtener una cadena hexadecimal que represente un punto flotante, "
1374+
"utiliza el método :meth:`float.hex`."
13221375

13231376
#: ../Doc/library/functions.rst:763
13241377
msgid ""
@@ -1327,6 +1380,10 @@ msgid ""
13271380
"Two objects with non-overlapping lifetimes may have the same :func:`id` "
13281381
"value."
13291382
msgstr ""
1383+
"Devuelve la “identidad” de un objeto. Esto es un entero que está garantizado "
1384+
"que es único y constante para este objeto durante toda su existencia. Dos "
1385+
"objetos con existencias en el tiempo que no coincidan pueden tener el mismo "
1386+
"valor de :func:`id`."
13301387

13311388
#: ../Doc/library/functions.rst:773
13321389
msgid ""

0 commit comments

Comments
 (0)