Structural Subtyping in Python · Redowan’s Reflections

I love using Go’s interface feature to declaratively define my public API structure. Consider this example: package main import ( “fmt” ) // Declare the interface. type Geometry interface { area() float64 perim() float64 } // Struct that represents a rect… Read more

Similar

Awesome Python

A curated list of awesome Python frameworks, libraries, software and resources - GitHub - vinta/awesome-python: A curated list of awesome Python frameworks, libraries, software and resources... (more…)

Read more »

Constant Folding in Python

Every programming language aims to be performant and Python is no exception. In this essay, we dive deep into Python internals and find out how Python makes its interpreter performant using a technique called Constant Folding. (more…)

Read more »