pyranha: doc and doctest for the truncate_degree() function.