George Sakkis wrote:

> a. Will print have to do an isinstance(args[0], format) to decide what
> to do ? If so, don't the usual arguments for duck typing and against
> type checking apply here ?

isinstance (or an equivalent mechanism) would be more robust, in this
specific case.

> b. print(a,b,c) is no longer obvious whether it prints 3 unformatted
> objects or 2 formatted, if you don't know what a is.

nope, but on the other hand, you don't know what it prints today either
(see my other post).

> b. What if for some reason one actually wants to print the format
> object instead of interpreting as a format specifier ?

repr() is your friend.

</F> 



_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to