@@ -9,7 +9,7 @@ msgstr ""
99"Project-Id-Version : Python 3.7\n "
1010"Report-Msgid-Bugs-To : \n "
1111"POT-Creation-Date : 2019-05-06 11:59-0400\n "
12- "PO-Revision-Date : 2020-05-07 10:04 +0200\n "
12+ "PO-Revision-Date : 2020-05-07 10:23 +0200\n "
1313"Language-Team : python-doc-es (https://mail.python.org/mailman3/lists/docs-es. "
1414"python.org)\n "
1515"MIME-Version : 1.0\n "
@@ -30,7 +30,7 @@ msgid ""
3030"that are always available. They are listed here in alphabetical order."
3131msgstr ""
3232"El intérprete de Python tiene una serie de funciones y tipos incluidos en él "
33- "que están siempre disponibles. Están listados aquí en orden alfabético. "
33+ "que están siempre disponibles. Están listados aquí en orden alfabético."
3434
3535#: ../Doc/library/functions.rst:13
3636msgid ":func:`abs`"
@@ -363,7 +363,7 @@ msgid ""
363363"If prefix \" 0b\" is desired or not, you can use either of the following ways."
364364msgstr ""
365365"Según se desee o no el prefijo “0b”, se puede usar uno u otro de las "
366- "siguientes maneras: "
366+ "siguientes maneras. "
367367
368368#: ../Doc/library/functions.rst:101 ../Doc/library/functions.rst:703
369369#: ../Doc/library/functions.rst:963
@@ -690,7 +690,9 @@ msgid ""
690690"Without arguments, return the list of names in the current local scope. "
691691"With an argument, attempt to return a list of valid attributes for that "
692692"object."
693- msgstr "Sin argumentos, devuelve la lista de nombres en el ámbito local."
693+ msgstr ""
694+ "Sin argumentos, devuelve la lista de nombres en el ámbito local. Con un "
695+ "argumento, intenta devolver una lista de atributos válidos para ese objeto."
694696
695697#: ../Doc/library/functions.rst:343
696698msgid ""
@@ -699,6 +701,11 @@ msgid ""
699701"custom :func:`__getattr__` or :func:`__getattribute__` function to customize "
700702"the way :func:`dir` reports their attributes."
701703msgstr ""
704+ "Si el objeto tiene un método llamado :meth:`__dir__`, éste será llamado y "
705+ "debe devolver la lista de atributos. Esto permite que los objetos que "
706+ "implementan una función personalizada :func:`__getattr__` o :func:"
707+ "`__getattribute__` puedan decidir la manera en la que :func:`dir` reporta "
708+ "sus atributos."
702709
703710#: ../Doc/library/functions.rst:348
704711msgid ""
@@ -708,6 +715,11 @@ msgid ""
708715"complete, and may be inaccurate when the object has a custom :func:"
709716"`__getattr__`."
710717msgstr ""
718+ "Si el objeto no provee de un método :meth:`__dir__`, la función intenta "
719+ "obtener la información del atributo :attr:`~object.__dict__` del objeto, si "
720+ "está definido, y de su objeto type. La lista resultante no está "
721+ "necesariamente completa, y puede ser inexacta cuando el objeto tiene una "
722+ "función :func:`__getattr__` implementada."
711723
712724#: ../Doc/library/functions.rst:353
713725msgid ""
0 commit comments