The PYTHONBREAKPOINT environment variable can be set to the name of a callable. This can be the callable that starts a debugging session in another 3rd party debugger library.
uWsgi is designed to operate on WSGI callables found in python modules. It's super nice, but most of the defaults values are wrong.
Les comparto un docker-compose para aprender dynamodb con python. La compose tiene dynamodb, dynamodb-admin y un python3.8 alpine.
Celery: c贸mo asegurarse de ejecutar de a una tarea a la vez. Ensuring a task is only executed one at a time
Estaba muy acostumbrado a debugear con mis queridos pdb.set_trace y de repente se apareci贸 Docker en mi camino y perdi la posibilidad de attachearme al debugger. Por eso ahora descubr WDB y funciona de maravilla.
Acostumbrado a usar .format() y a su sintaxis, esta vez quise ver c贸mo hacerlo con f-strings. Tenia que formatear un ancho fijo, llenar con espacios y lo hice con f-strings
Tags: python listas ejercicios entrevistas
Anteriormente he escrito un soluci贸n para merge de arrays ordenados con una complejidad lineal, pero tenia el problema de que modificaba las listas pasadas por argumentos. Aqui una versi贸n sin modificar las listas originales.
Tags: python beautifulSoup scraping scrap crawler
Vamos a tratar de extraer los datos que queremos de una tabla html de una web de estados del subte.
Usando la lib python-telegram-bot la verdad que es muy facil hacer un bot para telegram. As铆 que vamos a mostrar unos ejemplos sencillos para arrancar a codear uno.
Tags: python probabilidad
Estoy estudiando Probabilidad y Est谩distica y me pareci贸 interesante compartir unos scripts que hice para calcular estas variables con Python
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!