Skip to content

Latest commit

 

History

History

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Python

Resources

  • Fluent Python by Luciano Ramalho
  • Effective Python by Brett Slatkin

Projects

Typing

Static Analysis

twiddle wakka

Version spec Actual range ~= 2.4.0 >= 2.4.0 and < 2.5.0 ~= 2.4 >= 2.4.0 and < 3.0 ~= 2 >= 2.0 and < 3.0

inspection

import inspect inspect.signature() or inspect.getfullargspec()

venv

python3 -m venv venv . venv/bin/activate pip install -r requirements.txt

Tuple unpacking

a, b, *rest = range(5)
a, *body, c, d = range(5)

can be nested also

find

next((link for link in self.links if link.rel == rel), None)