What would be the use for this ? Python already has built-in "templating". The main reason c++ requires templating is because everything needs type unlike in Python. In a way, C++ is a fairly dumb language compared to Python. It is overly complicated now with lots of bells and whistles that makes coding slow, laborious and brittle . A stripped down version of C++ like Python (or C) would be sufficient for all tasks,