(3.2) Overload print() using the C API?

Stefan Behnel stefan_ml at behnel.de
Fri Apr 27 03:07:39 EDT 2012


Peter Faulks, 26.04.2012 21:28:
> "All you have to do is assign to print". Sounds great! Can some kind soul
> hit me with a clue stick? Were do I look in the API?

Here's the (Py3) Cython code for it:

  print = my_print_function

Stefan




More information about the Python-list mailing list