Alan's amusing and surprising homepage
  • Home
  • About me
  • Ollivander
  • Mostly Unixish
  • Projects
  • Speaking
  • Legalese
  • Cookies
  • Donate

type system

A collection of 2 posts

Ollivander

Primitive types are not your friends

Really. Stop (ab)using just strings and integers! Yes, they're the building blocks of whatever you do. But if you abuse them, you're not taking full advantage of your Object Oriented programming language.

Alan Franzoni Alan Franzoni
Ollivander

Python: discover the type of an object

This seems a simple enough question: How can I discover the type of any given Python object? Suppose Python 2.7 (Python 3 is a different beast on this topic), and try implementing

Alan Franzoni Alan Franzoni
Alan's amusing and surprising homepage © 2019
Latest Posts Twitter Ghost