Question about output...

Courageous jkraska at san.rr.com
Thu Oct 17 00:41:02 EDT 2002


>One of the primary motivations for iostreams in C++ vs. stdio is that
>stdio (printf, etc.) does not support polymorphism, ...

Another one is that in C++, printf can get badly hosed when the number
of arguments passed in variadically does not match the argument specification.
At worst, this causes an exception in Python, as Python has a first class
notion of the var args. Iostreams are an abortion, and a poor substitute for
first class varargs indeed.

C//




More information about the Python-list mailing list