225 private links
Naming a Slice Using slice Function, Prompting User for a Password at Runtime, Find Close Matches of a Word/String, Working with IP Addresses, Debugging Program Crashes in Shell, Defining Multiple Constructors in a Class, Caching Function Calls Using Decorator, Find the Most Frequently Occurring Items in a Iterable
Sanitizing String Input, Taking Slice of an Iterator, Skipping Begining of Iterable, Functions with only Keyword Arguments (kwargs), Creating Object That Supports with Statements, Saving Memory with slots, Limiting CPU and Memory Usage, Controlling What Can Be Imported and What Not, Comparison Operators the Easy Way
TL;DR It may works; but don't use literal in python !
Utiliser les annotations, accessible via self.__annotations__
.
Par exemple pour typer ou vérifier les variables qui arrivent d'une DB sans passer par SQLAlchemy; les exporter en JSON en vérifiant que le format est bien compatible;
Compile python code to LLVM code, can be run on GPU ! ⭐️
Wow looks promising !
Some advices for performance
For the Gemini space 🎨
Source code is available on a Gitlab instance : https://framagit.org/bortzmeyer/lupa
Without comment, the code explains itself.
About functions in python and how they can be used, called, callback, *args, **kwargs and more.
Sur l'utilisation de functools.partial
A guide to use and understand the context managers from the ground
The reference to use instead of request
since python3.6
Oh yeah !