-
Notifications
You must be signed in to change notification settings - Fork 397
Completing the built-in functions file (library/functions.po) #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
af08197
ee72c14
4cd3ede
87d6835
aeac0a7
bfca466
7fbcc1d
8570979
d396207
645ed8e
3d5a682
0d47e45
293e184
43bc864
a3f510a
39a08de
25be159
8815992
8d08792
e75af86
6874df2
3b8bc18
0294066
afc783a
8145d39
a82dcb5
7f40efc
2d96ac5
2066f07
67777da
aa55e52
96503bd
f5efe2b
a65cc7d
96c2ea7
b1b6d57
729b8a9
9f45960
bbb6f18
17fa9cf
664cc5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ msgstr "" | |
"Project-Id-Version: Python 3.8\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2020-05-07 14:37+0200\n" | ||
"PO-Revision-Date: 2020-05-16 02:30+0200\n" | ||
"PO-Revision-Date: 2020-05-16 18:26+0200\n" | ||
"Last-Translator: \n" | ||
"Language: es\n" | ||
"Language-Team: python-doc-esMIME-Version: 1.0\n" | ||
|
@@ -546,29 +546,41 @@ msgid "" | |
"integer *i*. For example, ``chr(97)`` returns the string ``'a'``, while " | ||
"``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`." | ||
msgstr "" | ||
"Devuelve la cadena que representa un carácter cuyo código Unicode es el " | ||
"entero *i*. Por ejemplo, ``chr(97)`` devuelve la cadena ``’a’``, mientras " | ||
"que ``chr(8364)`` devuelve la cadena ``’€’``. Esta función es la inversa de :" | ||
"func:`ord`." | ||
|
||
#: ../Doc/library/functions.rst:200 | ||
msgid "" | ||
"The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in " | ||
"base 16). :exc:`ValueError` will be raised if *i* is outside that range." | ||
msgstr "" | ||
"El rango válido para el argumento *i* es desde 0 a 1,114,111 (0x10FFFF en " | ||
"base 16). Se lanzará una excepción :exc:`ValueError` si *i* está fuera de " | ||
"ese rango." | ||
|
||
#: ../Doc/library/functions.rst:206 | ||
msgid "Transform a method into a class method." | ||
msgstr "" | ||
msgstr "Transforma un método en un método de clase." | ||
|
||
#: ../Doc/library/functions.rst:208 | ||
msgid "" | ||
"A class method receives the class as implicit first argument, just like an " | ||
"instance method receives the instance. To declare a class method, use this " | ||
"idiom::" | ||
msgstr "" | ||
"Un método de clase recibe la clase como el primer argumento implícito, de la " | ||
"misma forma que un método de instancia recibe la instancia. Para declarar un " | ||
"método de clase, emplea la siguiente expresión:" | ||
|
||
#: ../Doc/library/functions.rst:216 | ||
msgid "" | ||
"The ``@classmethod`` form is a function :term:`decorator` -- see :ref:" | ||
"`function` for details." | ||
msgstr "" | ||
"La forma ``@classmethod`` es una función :term:`decorator` — ver :ref:" | ||
"`function` para más detalles." | ||
|
||
#: ../Doc/library/functions.rst:219 | ||
msgid "" | ||
|
@@ -577,16 +589,22 @@ msgid "" | |
"class. If a class method is called for a derived class, the derived class " | ||
"object is passed as the implied first argument." | ||
msgstr "" | ||
"Un método de clase puede ser llamado en la clase (como ``C.f()``) o en la " | ||
"instancia (como ``C().f()``). La instancia es ignorada excepto por su clase. " | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"Si un método de clase es llamado desde una clase derivada, entonces el " | ||
"objeto de la clase derivada se para como el primer argumento implícito." | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#: ../Doc/library/functions.rst:224 | ||
msgid "" | ||
"Class methods are different than C++ or Java static methods. If you want " | ||
"those, see :func:`staticmethod`." | ||
msgstr "" | ||
"Los métodos de clase son diferentes a los métodos estáticos de C++ o Java. " | ||
"Si quieres ese tipo de métodos, revisa :func:`staticmethod`." | ||
|
||
#: ../Doc/library/functions.rst:227 | ||
msgid "For more information on class methods, see :ref:`types`." | ||
msgstr "" | ||
msgstr "Para más información sobre métodos de clase, ver :ref:`types`." | ||
|
||
#: ../Doc/library/functions.rst:232 | ||
msgid "" | ||
|
@@ -595,13 +613,22 @@ msgid "" | |
"string, a byte string, or an AST object. Refer to the :mod:`ast` module " | ||
"documentation for information on how to work with AST objects." | ||
msgstr "" | ||
"Compila el *source* en código o en un objeto AST (*Abstract Syntax Tree*, " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. esta es difícil!, no tengo clara la solución así que te comparto las dudas y opciones que se me ocurren: Quedaría buscar mejor que es un code object There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. por si te ayuda: https://www.quora.com/What-is-a-code-object-in-Python There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gracias! :) |
||
"árbol de sintaxis abstracta). Los objetos de código pueden ser ejecutados " | ||
"por las funciones :func:`exec` or :func:`eval`. *source* puede ser una " | ||
"cadena normal, una cadena de bytes o un objeto AST. Para más información " | ||
"sobre cómo trabajar con objetos AST, revisa la documentación del módulo :mod:" | ||
"`ast`." | ||
|
||
#: ../Doc/library/functions.rst:237 | ||
msgid "" | ||
"The *filename* argument should give the file from which the code was read; " | ||
"pass some recognizable value if it wasn't read from a file (``'<string>'`` " | ||
"is commonly used)." | ||
msgstr "" | ||
"El argumento *filename* debería dar el fichero desde el que el código fue " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. give > mostrar, indicar? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. si tienes razón |
||
"leído; pasa un valor reconocible en caso este no fuera leído de un fichero " | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"(``’<string>’`` es usado comúnmente para esto)." | ||
|
||
#: ../Doc/library/functions.rst:241 | ||
msgid "" | ||
|
@@ -611,6 +638,11 @@ msgid "" | |
"single interactive statement (in the latter case, expression statements that " | ||
"evaluate to something other than ``None`` will be printed)." | ||
msgstr "" | ||
"El argumento *mode* especifica que tipo de código debe ser compilado; puede " | ||
"ser ``’exec’`` si *source* consiste en una secuencia de declaraciones, " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. source > codigo fuente? a menos que haga referencia a algún ejemplo There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. es un argumento creo, pero lo veo mejor en en build de read the docs, luego me reviso todos los comentarios pendientes |
||
"``’eval’`` si consiste de una expresión sencilla, o ``’single’`` si consiste " | ||
"en una declaración única interactiva (en este último caso, las declaraciones " | ||
"de expresiones que evalúen a algo distinto de ``None`` serán impresas)." | ||
|
||
#: ../Doc/library/functions.rst:247 | ||
msgid "" | ||
|
@@ -624,15 +656,33 @@ msgid "" | |
"then the *flags* argument is it -- the future statements in effect around " | ||
"the call to compile are ignored." | ||
msgstr "" | ||
|
||
"Los argumentos opcionales *flags* y *dont_inherit* controlan que :ref:" | ||
"`future statements <future>` afectan a la compilación de *source*. Si " | ||
"ninguno de los dos está presente (o los dos son cero), el código se compila " | ||
"con las declaraciones futuras que están en el código que está llamando a :" | ||
"func:`compile`. Si el argumento *flags* es dado, y *dont_inherit* no (o es " | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"cero), entonces las declaraciones futuras especificadas en el argumento " | ||
"*flags* son usadas, además de aquellas que iban a ser utilizadas en " | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"cualquier caso. Si *dont_inherit* es un entero distinto de cero entonces el " | ||
"argumento *flags* es ignorado y no se consideran las declaraciones futuras " | ||
"en efecto durante la llamada a compile." | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# a ver, lo del bitwise ORed together me resulta dificil de traducir, creo que está bien pero quiero llamar la atención sobre esto a los revisores | ||
#: ../Doc/library/functions.rst:257 | ||
#, fuzzy | ||
msgid "" | ||
"Future statements are specified by bits which can be bitwise ORed together " | ||
"to specify multiple statements. The bitfield required to specify a given " | ||
"feature can be found as the :attr:`~__future__._Feature.compiler_flag` " | ||
"attribute on the :class:`~__future__._Feature` instance in the :mod:" | ||
"`__future__` module." | ||
msgstr "" | ||
"Las declaraciones futuras son especificadas por bits que pueden ser " | ||
"sometidos a la operación OR bit a bit para especificar múltiples " | ||
"declaraciones. El campo de bit requerido para especificar una característica " | ||
"específica puede ser encontrado como el atributo :attr:`~__future__._Feature." | ||
"compiler_flag` de la instancia de la clase :class:`~__future__._Feature` " | ||
"en el módulo :mod:`__future__`." | ||
|
||
#: ../Doc/library/functions.rst:262 | ||
msgid "" | ||
|
@@ -642,6 +692,11 @@ msgid "" | |
"object has ``CO_COROUTINE`` set in ``co_code``, and can be interactively " | ||
"executed via ``await eval(code_object)``." | ||
msgstr "" | ||
"El argumento opcional *flags* también controla si el código compilado puede " | ||
"contener ``await``, ``async for`` y ``async with`` de nivel superior. Cuando " | ||
"se establece el bit ``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` , el objeto de código " | ||
"devuelto tiene ``CO_COROUTINE`` establecido en ``co_code``, y puede ser " | ||
"ejecutado de forma interactiva a través de ``await eval(code_object)``." | ||
|
||
#: ../Doc/library/functions.rst:268 | ||
msgid "" | ||
|
@@ -651,30 +706,45 @@ msgid "" | |
"optimization; ``__debug__`` is true), ``1`` (asserts are removed, " | ||
"``__debug__`` is false) or ``2`` (docstrings are removed too)." | ||
msgstr "" | ||
"El argumento *optimize* especifica el nivel de optimización del compilador; " | ||
"el valor por defecto de ``-1`` selecciona el nivel de optimización del " | ||
"intérprete de la misma forma que las opciones :option:`-O`. Los niveles " | ||
"explícitos son ``0`` (sin optimización; ``__debug__`` es true), ``1`` (se " | ||
"eliminan los asserts, ``__debug__`` es false) or ``2`` (las docstrings " | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"también son eliminadas)." | ||
|
||
#: ../Doc/library/functions.rst:274 | ||
msgid "" | ||
"This function raises :exc:`SyntaxError` if the compiled source is invalid, " | ||
"and :exc:`ValueError` if the source contains null bytes." | ||
msgstr "" | ||
"Esta función lanza un :exc:`SyntaxError` si el código compilado es inválido, " | ||
"y un :exc:`ValueError` si contiene bytes nulos." | ||
|
||
#: ../Doc/library/functions.rst:277 | ||
msgid "" | ||
"If you want to parse Python code into its AST representation, see :func:`ast." | ||
"parse`." | ||
msgstr "" | ||
"Si quieres parsear código Python a su representación AST, revisa :func:`ast." | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"parse`." | ||
|
||
msgid "" | ||
"Raises an :ref:`auditing event <auditing>` ``compile`` with arguments " | ||
"``source``, ``filename``." | ||
msgstr "" | ||
"Lanza un :ref:`auditing event <auditing>` ``compile`` con argumentos " | ||
"``source``, ``filename``." | ||
|
||
#: ../Doc/library/functions.rst:282 | ||
msgid "" | ||
"Raises an :ref:`auditing event <auditing>` ``compile`` with arguments " | ||
"``source`` and ``filename``. This event may also be raised by implicit " | ||
"compilation." | ||
msgstr "" | ||
"Lanza un :ref:`auditing event <auditing>` ``compile`` con argumentos " | ||
"``source`` y ``filename``. Este evento también puede ser lanzado por la " | ||
"compilación implícita." | ||
|
||
#: ../Doc/library/functions.rst:288 | ||
msgid "" | ||
|
@@ -683,31 +753,48 @@ msgid "" | |
"to facilitate detection of incomplete and complete statements in the :mod:" | ||
"`code` module." | ||
msgstr "" | ||
"Cuando se compile una cadena multi-línea de código en los modos ``’single’`` " | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"o ``’eval’``, la entrada debe terminar al menos por un carácter de nueva " | ||
"línea. Esto facilita la detección de declaraciones completas e incompletas " | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"en el módulo :mod:`code`." | ||
|
||
# lo de stack depth limitations no estoy segura de como traducirlo: en términos de profundidad de la pila? | ||
#: ../Doc/library/functions.rst:295 | ||
#, fuzzy | ||
msgid "" | ||
"It is possible to crash the Python interpreter with a sufficiently large/" | ||
"complex string when compiling to an AST object due to stack depth " | ||
"limitations in Python's AST compiler." | ||
msgstr "" | ||
"Es posible bloquear el intérprete de Python con una cadena lo " | ||
clacri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"suficientemente larga o compleja al compilar a un objeto AST, debido a " | ||
"limitaciones en el compilador de AST de Python." | ||
|
||
#: ../Doc/library/functions.rst:299 | ||
msgid "" | ||
"Allowed use of Windows and Mac newlines. Also input in ``'exec'`` mode does " | ||
"not have to end in a newline anymore. Added the *optimize* parameter." | ||
msgstr "" | ||
"Permite el uso de caracteres de nueva línea de Windows y Mac. También, la " | ||
"entrada en el modo ``’exec’`` no tiene porque terminar en una nueva línea. " | ||
"Se añade el parámetro *optimize*." | ||
|
||
#: ../Doc/library/functions.rst:303 | ||
msgid "" | ||
"Previously, :exc:`TypeError` was raised when null bytes were encountered in " | ||
"*source*." | ||
msgstr "" | ||
"Anteriormente, un :exc:`TypeError` era lanzado cuando se encontraban bytes " | ||
"nulos en *source*." | ||
|
||
#: ../Doc/library/functions.rst:307 | ||
msgid "" | ||
"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable " | ||
"support for top-level ``await``, ``async for``, and ``async with``." | ||
msgstr "" | ||
"``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` puede ahora ser pasado en *flags* para " | ||
"permitir el soporte de ``await``, ``async for``, y ``async with`` en niveles " | ||
"superiores." | ||
|
||
#: ../Doc/library/functions.rst:314 | ||
msgid "" | ||
|
@@ -1326,7 +1413,7 @@ msgstr "" | |
"Esta función se añade al espacio de nombres built-in a través del módulo :" | ||
"mod:`site`." | ||
|
||
# no estoy muy segura de lo de callables por invocables | ||
# no estoy muy segura de lo de callables por invocables | ||
#: ../Doc/library/functions.rst:724 | ||
#, fuzzy | ||
msgid "" | ||
|
Uh oh!
There was an error while loading. Please reload this page.