Python

ormpathsqlasyncform

Python is a widely used high-level, general-purpose, interpreted, dynamic programming language.

Language deep dives

  • Decorators - wrapping callables (with functools.wraps, arguments, stacking, and the kinds of decorators).
  • Descriptors - the __get__/__set__ protocol behind properties, methods and ORM fields.

Web frameworks

Data and libraries

Cookbook

Compute the directory of the current file:

import os

__path__ = os.path.dirname(os.path.join(os.getcwd(), __file__))

Related