TIL: mypy Playground is a web service that receives a Python program with type hints, runs mypy inside a sandbox, then returns the output.
https://mypy-play.net/
https://mypy-play.net/
mypy-play.net
mypy Playground
The mypy Playground is a web service that receives a Python program with type hints, runs mypy inside a sandbox, then returns the output.
Found very intersting approach to count the digits of an integers #python:
from math import floor, log10
def count_digits(n):
return 1 + floor(log10(n))
In [2]: count_digits(5)
Out[2]: 1
In [3]: count_digits(999)
Out[3]: 3
In [4]: count_digits(1000)
Out[4]: 4
Scalene: a high-performance CPU, GPU and memory profiler for Python
https://github.com/plasma-umass/scalene
https://github.com/plasma-umass/scalene
TIL a faster way to remove duplicates from a #python iterable, preserving order (in https://youtu.be/5xArPgQMJls?t=2149 by
@SebaWitowski
)
def unique_items(iterable):
# Requires hashable items, Python 3.6+
return dict.fromkeys(iterable)
@SebaWitowski
)
def unique_items(iterable):
# Requires hashable items, Python 3.6+
return dict.fromkeys(iterable)
YouTube
Sebastian Witowski - Writing Faster Python 3
Strona PyConPL: https://pl.pycon.org
FB: http://pl.pycon.org/
Linkedin: https://www.linkedin.com/company/pyco...
Twitter: https://twitter.com/pyconpl
Did you know that Python preallocates integers from -5 to 257? Reusing them 1000 times, instead of allocating…
FB: http://pl.pycon.org/
Linkedin: https://www.linkedin.com/company/pyco...
Twitter: https://twitter.com/pyconpl
Did you know that Python preallocates integers from -5 to 257? Reusing them 1000 times, instead of allocating…
Today, around 15:25 GMT +2, I’ll present my talk at
@pyconit
about debugging Python applications inside the docker and k8s cluster. You can watch it online using the stream link https://2024.pycon.it/en/streaming or attend (Room Lasagna).
#pycon #pyconit #k8s
@pyconit
about debugging Python applications inside the docker and k8s cluster. You can watch it online using the stream link https://2024.pycon.it/en/streaming or attend (Room Lasagna).
#pycon #pyconit #k8s
2024.pycon.it
Streaming | PyCon Italia
Join PyCon Italia from the 22th to the 25th of May 2024 in Florence, Italy!