On Apr 10, 8:12 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "jmDesktop" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | Two new versions of the language are currently in development: version > | 2.6, which retains backwards compatibility with previous releases; and > | version 3.0, which breaks backwards compatibility to the extent that > | even that simplest of programs, the classic 'Hello, World', will no > | longer work in its current form. > > That change is however, the one most immediately visible to new > programmers. Most of the other statements are pretty much unchanged. In > any case, 'print' is an easy-to-use facade over sys.stdout.write(), with > default formatting. If really concerned about it, start programs with > import sys > write = sys.stdout.write > and use that to write out explicitly formatted strings. (Some people > routinely do this for production code anyway.) > > tjr
Some C tragics do things like this, which appear to be 3.0-proof: def fprintf(f, fmt, *vargs): f.write(fmt % vargs) Cheers, John -- http://mail.python.org/mailman/listinfo/python-list