Skip to content Skip to sidebar Skip to footer
Showing posts with the label Typing

Clean And Type-safe State Machine Implementation In A Statically Typed Language?

I implemented a simple state machine in Python: import time def a(): print 'a()' r… Read more Clean And Type-safe State Machine Implementation In A Statically Typed Language?

What Are Built-in Python 3 Types That Can Be Compared To Each Other?

In Python 2, it was possible to compare objects of different types such as int to str by having an … Read more What Are Built-in Python 3 Types That Can Be Compared To Each Other?

Recursive Type Annotations

I'm trying to introduce static type annotations to my codebase where applicable. One case is wh… Read more Recursive Type Annotations

How To Reduce Boilerplate When Initializating Classes From Jsons In Python 3.5?

I have a set of python webservices that work with data objects they get via a JSON POSTs. In my old… Read more How To Reduce Boilerplate When Initializating Classes From Jsons In Python 3.5?