Python en español #25: Tertulia 2021-03-23
Description
Participantes:
Jesús Cea, email: jcea@jcea.es, twitter:
@jcea, https://blog.jcea.es/,
https://www.jcea.es/. Conectando desde Madrid.Felipem, conectando desde Cantabria.
Jesús, conectando desde Ferrol.
Víctor Ramírez, twitter: @virako,
programador python y amante de
vim, conectando desde
Huelva.Eduardo Castro, email:
info@ecdesign.es. Conectando desde A
Guarda.
Audio editado por Pablo Gómez, twitter:
@julebek.
La música de la entrada y la salida es "Lightning Bugs", de Jason
Shaw. Publicada en https://audionautix.com/ con licencia
- Creative Commons Attribution 4.0 International
License.
<timestamp compact="1" offset="52" ts="52">[00:52 ]<topic> Advertencia de que el audio tiene lagunas y puede ser
difícil seguir el hilo.</topic></timestamp><timestamp compact="1" offset="52" ts="67">[01:07 ]<topic> Conecta gente nueva y cambio de horario.</topic></timestamp>
- ¡Queremos que las tertulias sean más cortas!
<timestamp compact="1" offset="52" ts="297">[04:57 ]<topic> Python 3.10: ¿Mandar y cómo mandar deberes?</topic></timestamp>
- ¿Probar las novedades cuando se anuncian o esperar a que
entren en producción?
- ¿Probar las novedades cuando se anuncian o esperar a que
<timestamp compact="1" offset="52" ts="499">[08:19 ]<topic> Presentaciones.</topic></timestamp>
<timestamp compact="1" offset="52" ts="632">[10:32 ]<topic> Jesús Cea ha enviado ya el parche para el bug que se
discutió en navidades: Issue35930: Raising an exception raised
in a "future" instance will create reference cycles
https://bugs.python.org/issue35930.</topic></timestamp><timestamp compact="1" offset="52" ts="672">[11:12 ]<topic> Los que se autodenominan novatos también tienen mucho
que aportar.</topic></timestamp><timestamp compact="1" offset="52" ts="741">[12:21 ]<topic> Unpacking en bucles
for
: PEP 3132 -- Extended Iterable
Unpacking: https://www.python.org/dev/peps/pep-3132/.</topic></timestamp>Busca en Internet: "Python tuple unpacking".
PEP 448 -- Additional Unpacking Generalizations:
https://www.python.org/dev/peps/pep-0448/.
<timestamp compact="1" offset="52" ts="957">[15:57 ]<topic> Python Packaging: Lo estás haciendo mal
https://www.youtube.com/watch?v=OeOtIEDFr4Y.</topic></timestamp><timestamp compact="1" offset="52" ts="1087">[18:07 ]<topic> Machete Mode:
https://nedbatchelder.com/blog/202103/machete_mode_tagging_frames.html.</topic></timestamp><timestamp compact="1" offset="52" ts="1122">[18:42 ]<topic> Pattern Matching en Python 3.10:</topic></timestamp>
PEP 622 -- Structural Pattern Matching
https://www.python.org/dev/peps/pep-0622/.PEP 634 -- Structural Pattern Matching: Specification
https://www.python.org/dev/peps/pep-0634/.PEP 635 -- Structural Pattern Matching: Motivation and
Rationale https://www.python.org/dev/peps/pep-0635/.PEP 636 -- Structural Pattern Matching: Tutorial
https://www.python.org/dev/peps/pep-0636/.Tema recurrente: ¿Compensa complicar la sintaxis del
lenguaje?
<timestamp compact="1" offset="52" ts="1347">[22:27 ]<topic> ¡Combina todo eso con el Walrus operator (operador
morsa)!: PEP 572 -- Assignment Expressions
https://www.python.org/dev/peps/pep-0572/.</topic></timestamp>- Presentación en vídeo: Pattern Matching in Python 3.10:
https://morioh.com/p/aa1e6d5352c3, minuto 8:47 .
- Presentación en vídeo: Pattern Matching in Python 3.10:
<timestamp compact="1" offset="52" ts="1472">[24:32 ]<topic> Temas recurrentes de Jesús Cea: complejidad accidental
del lenguaje. ¿Python ha perdido el rumbo?</topic></timestamp>Guido van Rossum
https://es.wikipedia.org/wiki/Guido_van_Rossum está
apoyando muchos cambios polémicos en Python.El principio del fin fue la implementación de
async
/await
y dividir Python en dos mundos: síncrono y
asíncrono.
<timestamp compact="1" offset="52" ts="1622">[27:02 ]<topic> Código que puede funcionar tanto en el mundo síncrono y
asíncrono.</topic></timestamp>Biblioteca
asyncio
:
https://docs.python.org/3/library/asyncio.html.Biblioteca
unsync
: https://pypi.org/project/unsync/.inspect.iscoroutinefunction(object)
:
https://docs.python.org/3/library/inspect.html#inspect.iscoroutinefunction.inspect.iscoroutine(object)
:
https://docs.python.org/3/library/inspect.html#inspect.iscoroutine.inspect.isawaitable(object)
:
https://docs.python.org/3/library/inspect.html#inspect.isawaitable.inspect.isasyncgenfunction(object)
:
https://docs.python.org/3/library/inspect.html#inspect.isasyncgenfunction.inspect.isasyncgen(object)
:
https://docs.python.org/3/library/inspect.html.
<timestamp compact="1" offset="52" ts="1752">[29:12 ]<topic> Lo bueno de tener dificultad para mezclar el mundo
síncrono y el mundo asíncrono es que ha surgido un movimiento
para desvincular los protocolos del propio medio de
comunicación.</topic></timestamp>Sans IO: https://sans-io.readthedocs.io/.
Máquina de estados:
https://es.wikipedia.org/wiki/M%C3%A1quina_de_estados.
<timestamp compact="1" offset="52" ts="1995">[33:15 ]<topic> How to write obfuscated python
https://archive.org/details/pyvideo_398___how-to-write-obfuscated-python.</topic></timestamp><timestamp compact="1" offset="52" ts="2032">[33:52 ]<topic> Seguridad en PyPI https://pypi.org/: New packaging
security funding & NYU
https://discuss.python.org/t/new-packaging-security-funding-nyu/7792.</topic></timestamp>PEP 458 -- Secure PyPI downloads with signed repository
metadata https://www.python.org/dev/peps/pep-0458/.Permite meter espejos de PyPI https://pypi.org/ sin tener
que confiar en ellos.
<timestamp compact="1" offset="52" ts="2187">[36:27 ]<topic> Encuesta mundial de programadores Python: Python
Developers Survey 2020 Results
https://www.jetbrains.com/lp/python-developers-survey-2020/.</topic></timestamp>Aquí no vamos a describir cada respuesta de la encuesta en las
notas de la tertulia, pero listamos puntos y enlaces que
pueden ser de interés.<timestamp compact="1" offset="52" ts="2432">[40:32 ]<topic> Usar Python en el navegador web: Brython
http://www