Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Python

Idiom #245 Print value of custom type

Print the value of object x having custom type T, for log or debug.

print(x)
#include <iostream>
std::cout << x;

New implementation...
< >
花大喵