python

  • override behavior with double underscore methods like __str(self)__
  • create and activate virtual environment python -m venv venv && source venv/bin/activate
  • run a http server on port 8080 python -m http.server 8080
  • pretty print json python -m json.tool
  • PEP to remove GIL
  • sub interpreters PEP
  • typing is optional ex. def test(name: str) -> str:
  • functools provides decorator annotations for things like @cache
  • decorators in stdlib such as @staticmethod
  • @dataclass(frozen=True) for immutable objects
  • graalpy supports C extensions through llvm with pip venv building
  • requirements.txt pin to git LIBRARY @ git+https://github.com/USER/REPO@BRANCH