Skip to content

Commit f519aa1

Browse files
committed
Merge branch '3.10' into pr-1224
2 parents cd72cc9 + 803c5da commit f519aa1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+18057
-858
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
run: powrap --check --quiet **/*.po
3232
- name: Pospell
3333
run: |
34-
python scripts/create_dict.py
35-
pospell -p dict.txt -l es_ES **/*.po
34+
python scripts/check_spell.py
3635
- name: Construir documentación
3736
run: PYTHONWARNINGS=ignore::FutureWarning sphinx-build -j auto -W --keep-going -b html -d cpython/Doc/_build/doctree -D language=es . cpython/Doc/_build/html

.overrides/faq.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ pospell. Pospell puede ser instalada en tu entorno de Python empleando pip
2626
Una vez instalado, para chequear el fichero .po sobre el que estás trabajando,
2727
ejecuta desde el directorio principal del repo::
2828

29-
python scripts/create_dict.py # para crear el archivo 'dict.txt'
30-
pospell -p dict.txt -l es_ES path/tu_fichero.po
29+
python scripts/check_spell.py path/tu_fichero.po
3130

3231
pospell emplea la herramienta de diccionarios hunspell. Si pospell falla dando
3332
como error que no tiene hunspell instalado, lo puedes instalar así:

.pre-commit-config.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ repos:
55
- id: powrap
66
- repo: local
77
hooks:
8-
- id: merge-dicts
9-
name: merge-dicts
10-
entry: python ./scripts/create_dict.py
8+
- id: check-spell
9+
name: Check spelling
10+
entry: python ./scripts/check_spell.py
1111
language: python
12-
# This one requires package ``hunspell-es_es`` in Archlinux
13-
- repo: https://github.com/AFPy/pospell
14-
rev: v1.0.12
15-
hooks:
16-
- id: pospell
17-
args: ['--personal-dict', 'dict.txt', '--language', 'es_ES', '--language', 'es_AR']
12+
additional_dependencies: ['pospell>=1.1']
13+
files: \.po$

Makefile

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -89,24 +89,9 @@ progress: venv
8989

9090
.PHONY: spell
9191
spell: venv
92-
$(VENV)/bin/python scripts/create_dict.py
93-
$(VENV)/bin/pospell -p dict.txt -l es_ES **/*.po
92+
$(VENV)/bin/python scripts/check_spell.py
9493

9594

9695
.PHONY: wrap
9796
wrap: venv
9897
$(VENV)/bin/powrap **/*.po
99-
100-
.PHONY: dict_dups
101-
SHELL:=/bin/bash
102-
.ONESHELL:
103-
dict_dups:
104-
if [[ $$(cat dict| sort | uniq -dc) ]]; then
105-
echo -e "\n #######################\n"
106-
echo "duplicated lines in the dict file"
107-
sort dict | uniq -dc |sort -h
108-
exit 1
109-
else
110-
echo "no duplicated lines"
111-
exit 0
112-
fi

TRANSLATORS

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,9 @@ Diego Cristóbal (@dcristobalh)
157157
Rodrigo Tobar (@rtobar)
158158
Catalina Arrey Amunátegui (@CatalinaArrey)
159159
Manu de Frutos Vila (@manudefrutosvila)
160-
Gabriela Monsalve Martínez (@gmmonsalve)
160+
Gianfranco Salomone (@gianfranco-s)
161+
Gabriela Monsalve Martínez (@gmmonsalve)
162+
Ana Elisa Kuhn (@AnitaaKuhn)
163+
Antonio Rodriguez Mejias (@Tony-Rome)
164+
Ingrid Bianka Garcia Lino (@ibianka)
165+
Héctor Sánchez Barrera (@hector-sab)

c-api/arg.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ msgid ""
203203
"resulting C string may contain embedded NUL bytes. Unicode objects are "
204204
"converted to C strings using ``'utf-8'`` encoding."
205205
msgstr ""
206-
"Este formato acepta objetos Unicode, así como objectos de tipo bytes. Llena "
206+
"Este formato acepta objetos Unicode, así como objetos de tipo bytes. Llena "
207207
"una estructura :c:type:`Py_buffer` proporcionada por la persona que llama. "
208208
"En este caso la cadena de caracteres de C resultante puede contener bytes "
209209
"NUL embebidos. Los objetos Unicode se convierten en cadenas de caracteres C "
@@ -284,7 +284,7 @@ msgid ""
284284
"contain embedded null bytes; if it does, a :exc:`ValueError` exception is "
285285
"raised."
286286
msgstr ""
287-
"Este formato convierte un objecto de tipo bytes a un puntero C a una cadena "
287+
"Este formato convierte un objeto de tipo bytes a un puntero C a una cadena "
288288
"de caracteres; no acepta objetos Unicode. El búfer de bytes no debe contener "
289289
"bytes nulos incrustados; si lo hace, se lanza una excepción :exc:"
290290
"`ValueError`."
@@ -351,7 +351,7 @@ msgid ""
351351
"`PyObject*`."
352352
msgstr ""
353353
"Requiere que el objeto Python es un objeto :class:`bytearray`, sin intentar "
354-
"ninguna conversión. Lanza :exc:`TypeError` si el objeto no es un objecto :"
354+
"ninguna conversión. Lanza :exc:`TypeError` si el objeto no es un objeto :"
355355
"class:`bytearray`. La variable C también puede ser declarada como :c:type:"
356356
"`PyObject*`."
357357

@@ -1410,16 +1410,16 @@ msgid ""
14101410
"Convert a C :c:type:`int` representing a byte to a Python :class:`bytes` "
14111411
"object of length 1."
14121412
msgstr ""
1413-
"Convierte un :c:type:`int` de C representando un byte a un objecto :class:"
1413+
"Convierte un :c:type:`int` de C representando un byte a un objeto :class:"
14141414
"`bytes` de Python de largo 1."
14151415

14161416
#: ../Doc/c-api/arg.rst:624
14171417
msgid ""
14181418
"Convert a C :c:type:`int` representing a character to Python :class:`str` "
14191419
"object of length 1."
14201420
msgstr ""
1421-
"Convierte un :c:type:`int` de C representando un carácter a un objecto :"
1422-
"class:`str` de Python de largo 1."
1421+
"Convierte un :c:type:`int` de C representando un carácter a un objeto :class:"
1422+
"`str` de Python de largo 1."
14231423

14241424
#: ../Doc/c-api/arg.rst:628
14251425
msgid "Convert a C :c:type:`double` to a Python floating point number."

c-api/exceptions.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ msgstr ""
10171017

10181018
#: ../Doc/c-api/exceptions.rst:668
10191019
msgid "Unicode Exception Objects"
1020-
msgstr "Objectos Unicode de Excepción"
1020+
msgstr "Objetos Unicode de Excepción"
10211021

10221022
#: ../Doc/c-api/exceptions.rst:670
10231023
msgid ""

c-api/file.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ msgid ""
183183
"instead of the :func:`repr`. Return ``0`` on success or ``-1`` on failure; "
184184
"the appropriate exception will be set."
185185
msgstr ""
186-
"Escribe el objecto *obj* en el objeto archivo *p*. El único indicador "
186+
"Escribe el objeto *obj* en el objeto archivo *p*. El único indicador "
187187
"admitido para *flags* es :const:`Py_PRINT_RAW`; si se proporciona, se "
188188
"escribe el :func:`str` del objeto en lugar de :func:`repr`. Retorna ``0`` en "
189189
"caso de éxito o ``-1`` en caso de error; se establecerá la excepción "

c-api/module.po

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ msgstr ""
2323

2424
#: ../Doc/c-api/module.rst:6
2525
msgid "Module Objects"
26-
msgstr "Objectos Modulo"
26+
msgstr "Objetos Modulo"
2727

2828
#: ../Doc/c-api/module.rst:15
2929
msgid ""
@@ -337,6 +337,11 @@ msgid ""
337337
"collector is not involved and :c:member:`~PyModuleDef.m_free` is called "
338338
"directly."
339339
msgstr ""
340+
"Tal como :c:member:`PyTypeObject.tp_clear`, esta función no *siempre* es "
341+
"llamada antes de la designación de un módulo. Por ejemplo, cuando el "
342+
"recuento de referencias está listo para determinar que un objeto no se usa "
343+
"más, la recolección de basura cíclica no se involucra y se llama a :c:member:"
344+
"`~PyModuleDef.m_free` directamente."
340345

341346
#: ../Doc/c-api/module.rst:235
342347
msgid ""
@@ -714,41 +719,54 @@ msgstr ""
714719
msgid ""
715720
"On success, return ``0``. On error, raise an exception and return ``-1``."
716721
msgstr ""
722+
"En caso de éxito, retorna ``0``. En caso de error, lanza una excepción y "
723+
"retorna ``-1``."
717724

718725
#: ../Doc/c-api/module.rst:454
719726
msgid ""
720727
"Return ``NULL`` if *value* is ``NULL``. It must be called with an exception "
721728
"raised in this case."
722729
msgstr ""
730+
"Retorna ``NULL`` si *value* es ``NULL``. Debe llamarse lanzando una "
731+
"excepción en este caso."
723732

724733
#: ../Doc/c-api/module.rst:457 ../Doc/c-api/module.rst:506
725734
msgid "Example usage::"
726-
msgstr ""
735+
msgstr "Ejemplo de uso ::"
727736

728737
#: ../Doc/c-api/module.rst:471 ../Doc/c-api/module.rst:524
729738
msgid ""
730739
"The example can also be written without checking explicitly if *obj* is "
731740
"``NULL``::"
732741
msgstr ""
742+
"El ejemplo puede también ser escrito sin verificar explicitamente si *obj* "
743+
"es ``NULL``::"
733744

734745
#: ../Doc/c-api/module.rst:483 ../Doc/c-api/module.rst:540
735746
msgid ""
736747
"Note that ``Py_XDECREF()`` should be used instead of ``Py_DECREF()`` in this "
737748
"case, since *obj* can be ``NULL``."
738749
msgstr ""
750+
"Note que ``Py_XDECREF()`` debería ser usado en vez de ``Py_DECREF()`` en "
751+
"este caso, ya que *obj* puede ser ``NULL``."
739752

740753
#: ../Doc/c-api/module.rst:491
741754
msgid ""
742755
"Similar to :c:func:`PyModule_AddObjectRef`, but steals a reference to "
743756
"*value* on success (if it returns ``0``)."
744757
msgstr ""
758+
"Similar a :c:func:`PyModule_AddObjectRef`, pero roba una referencia a "
759+
"*value* en caso de éxito (en este caso retorna ``0``)."
745760

746761
#: ../Doc/c-api/module.rst:494
747762
msgid ""
748763
"The new :c:func:`PyModule_AddObjectRef` function is recommended, since it is "
749764
"easy to introduce reference leaks by misusing the :c:func:"
750765
"`PyModule_AddObject` function."
751766
msgstr ""
767+
"Se recomienda la nueva función :c:func:`PyModule_AddObjectRef`, ya que es "
768+
"sencillo introducir fugas de referencias por un uso incorrecto de la "
769+
"función :c:func:`PyModule_AddObject`."
752770

753771
#: ../Doc/c-api/module.rst:500
754772
msgid ""

c-api/refcounting.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ msgid ""
8989
"The object *o* must not be ``NULL``; use :c:func:`Py_XNewRef` if *o* can be "
9090
"``NULL``."
9191
msgstr ""
92-
"El objecto *o* no debe ser ``NULL``; use :c:func:`Py_XNewRef` si *o* puede "
92+
"El objeto *o* no debe ser ``NULL``; use :c:func:`Py_XNewRef` si *o* puede "
9393
"ser ``NULL``."
9494

9595
#: ../Doc/c-api/refcounting.rst:45
@@ -106,7 +106,7 @@ msgstr "Ver también :c:func:`Py_INCREF`."
106106

107107
#: ../Doc/c-api/refcounting.rst:61
108108
msgid "Similar to :c:func:`Py_NewRef`, but the object *o* can be NULL."
109-
msgstr "Similar a :c:func:`Py_NewRef`, pero el objecto *o* puede ser NULL."
109+
msgstr "Similar a :c:func:`Py_NewRef`, pero el objeto *o* puede ser NULL."
110110

111111
#: ../Doc/c-api/refcounting.rst:63
112112
msgid "If the object *o* is ``NULL``, the function just returns ``NULL``."

c-api/structures.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ msgstr ""
364364
"no es la de :c:type:`PyCFunction`, el compilador requiere una conversión de "
365365
"tipo en la tabla de métodos. A pesar de que :c:type:`PyCFunction` define el "
366366
"primer parámetro como :c:type:`PyObject*`, es común que la implementación "
367-
"del método utiliza el tipo específico C del objecto *self*."
367+
"del método utiliza el tipo específico C del objeto *self*."
368368

369369
#: ../Doc/c-api/structures.rst:260
370370
msgid ""

c-api/sys.po

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2021-10-16 21:42+0200\n"
14-
"PO-Revision-Date: 2021-08-01 20:08+0200\n"
15-
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
14+
"PO-Revision-Date: 2021-10-26 20:21+0200\n"
15+
"Last-Translator: Diego Cristóbal Herreros <diecristher@gmail.com>\n"
1616
"Language: es\n"
1717
"Language-Team: python-doc-es\n"
18-
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
18+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1919
"MIME-Version: 1.0\n"
2020
"Content-Type: text/plain; charset=utf-8\n"
2121
"Content-Transfer-Encoding: 8bit\n"
2222
"Generated-By: Babel 2.9.1\n"
23+
"X-Generator: Poedit 3.0\n"
2324

2425
#: ../Doc/c-api/sys.rst:6
2526
msgid "Operating System Utilities"
@@ -199,13 +200,19 @@ msgid ""
199200
"with the :c:func:`PyConfig_SetBytesString` function which ensures that :ref:"
200201
"`Python is preinitialized <c-preinit>`."
201202
msgstr ""
203+
"Esta función no debe llamarse directamente: utilice la API :c:type:"
204+
"`PyConfig` con la función :c:func:`PyConfig_SetBytesString` que asegura que :"
205+
"ref:`Python está preinicializado <c-preinit>`."
202206

203207
#: ../Doc/c-api/sys.rst:126 ../Doc/c-api/sys.rst:193
204208
msgid ""
205209
"This function must not be called before :ref:`Python is preinitialized <c-"
206210
"preinit>` and so that the LC_CTYPE locale is properly configured: see the :c:"
207211
"func:`Py_PreInitialize` function."
208212
msgstr ""
213+
"Esta función no debe llamarse antes de que :ref:`Python esté preinicializado "
214+
"<c-preinit>` y para que la configuración local LC_CTYPE esté correctamente "
215+
"configurada: véase la función :c:func:`Py_PreInitialize`."
209216

210217
#: ../Doc/c-api/sys.rst:130
211218
#, fuzzy
@@ -252,6 +259,9 @@ msgid ""
252259
"`PyConfig_Read`: see :c:member:`~PyConfig.filesystem_encoding` and :c:member:"
253260
"`~PyConfig.filesystem_errors` members of :c:type:`PyConfig`."
254261
msgstr ""
262+
"El :term:`filesystem encoding and error handler` son seleccionados por :c:"
263+
"func:`PyConfig_Read`: ver :c:member:`~PyConfig.filesystem_encoding` y :c:"
264+
"member:`~PyConfig.filesystem_errors` que pertenecen a :c:type:`PyConfig`."
255265

256266
#: ../Doc/c-api/sys.rst:149
257267
msgid ""
@@ -298,6 +308,10 @@ msgid ""
298308
"<surrogateescape>`, surrogate characters in the range U+DC80..U+DCFF are "
299309
"converted to bytes 0x80..0xFF."
300310
msgstr ""
311+
"Codifica una cadena de caracteres amplios según el término :term:`filesystem "
312+
"encoding and error handler`. Si el gestor de errores es :ref:"
313+
"`surrogateescape error handler <surrogateescape>`, los caracteres "
314+
"sustituidos en el rango U+DC80..U+DCFF se convierten en bytes 0x80..0xFF."
301315

302316
#: ../Doc/c-api/sys.rst:178
303317
msgid ""

c-api/typehints.po

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,35 @@
44
# package.
55
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
66
#
7-
#, fuzzy
87
msgid ""
98
msgstr ""
109
"Project-Id-Version: Python en Español 3.10\n"
1110
"Report-Msgid-Bugs-To: \n"
1211
"POT-Creation-Date: 2021-10-16 21:42+0200\n"
13-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15-
"Language-Team: LANGUAGE <LL@li.org>\n"
12+
"PO-Revision-Date: 2021-11-16 22:14-0600\n"
1613
"MIME-Version: 1.0\n"
17-
"Content-Type: text/plain; charset=utf-8\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
1815
"Content-Transfer-Encoding: 8bit\n"
1916
"Generated-By: Babel 2.9.1\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"Last-Translator: Erick G. Islas Osuna <erickisos653@gmail.com>\n"
19+
"Language-Team: \n"
20+
"Language: es\n"
21+
"X-Generator: Poedit 3.0\n"
2022

2123
#: ../Doc/c-api/typehints.rst:6
2224
msgid "Objects for Type Hinting"
23-
msgstr ""
25+
msgstr "Objetos para indicaciones de tipado"
2426

2527
#: ../Doc/c-api/typehints.rst:8
2628
msgid ""
2729
"Various built-in types for type hinting are provided. Currently, two types "
2830
"exist -- :ref:`GenericAlias <types-genericalias>` and :ref:`Union <types-"
2931
"union>`. Only ``GenericAlias`` is exposed to C."
3032
msgstr ""
33+
"Se proporcionan varios tipos incorporados para indicaciones de tipado. "
34+
"Actualmente existen dos tipos -- :ref:`GenericAlias <types-genericalias>` y :"
35+
"ref:`Union <types-union>`. Solo ``GenericAlias`` es expuesto a C."
3136

3237
#: ../Doc/c-api/typehints.rst:14
3338
msgid ""
@@ -43,17 +48,31 @@ msgid ""
4348
"lazily from ``__args__``. On failure, an exception is raised and ``NULL`` "
4449
"is returned."
4550
msgstr ""
51+
"Crea un objeto :ref:`GenericAlias <types-genericalias>`. Equivalente a "
52+
"llamar la clase de Python :class:`types.GenericAlias`. Los argumentos "
53+
"*origin* y *args* configuran los atributos ``__origin__`` y ``__args__`` de "
54+
"``GenericAlias`` respectivamente. *origin* debe ser un :c:type:"
55+
"`PyTypeObject*`, y *args* puede ser un :c:type:`PyTupleObject*` o cualquier "
56+
"``PyObject*``. Si el valor de *args* no es una tupla, un 1-tupla es "
57+
"automáticamente construida y ``__args__`` es configurado como ``(args,)``. "
58+
"Para los argumentos se realiza un chequeo mínimo, de esta manera la función "
59+
"tendrá éxito incluso si *origin* no es un tipo. El atributo "
60+
"``__parameters__`` de ``GenericAlias`` es construido de forma diferida a "
61+
"partir de ``__args__``. Si existe una falla, se levantará una excepción y se "
62+
"retornará ``NULL``."
4663

4764
#: ../Doc/c-api/typehints.rst:28
4865
msgid "Here's an example of how to make an extension type generic::"
49-
msgstr ""
66+
msgstr "Aquí hay un ejemplo sobre cómo hacer un tipo de extensión genérica::"
5067

5168
#: ../Doc/c-api/typehints.rst:38
5269
msgid "The data model method :meth:`__class_getitem__`."
53-
msgstr ""
70+
msgstr "El método del modelo de datos :meth:`__class_getitem__`."
5471

5572
#: ../Doc/c-api/typehints.rst:44
5673
msgid ""
5774
"The C type of the object returned by :c:func:`Py_GenericAlias`. Equivalent "
5875
"to :class:`types.GenericAlias` in Python."
5976
msgstr ""
77+
"El tipo en C del objeto retornado por :c:func:`Py_GenericAlias`. Equivalente "
78+
"a :class:`types.GenericAlias` en Python."
File renamed without changes.

dictionaries/library_constants.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ellipsis

dictionaries/library_dis.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oparg
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
param

0 commit comments

Comments
 (0)