On 2009-09-20, Peng Yu <pengyu...@gmail.com> wrote:

>> You might also want to read up on the type() builtin
>
> I want avoid using any 'if' statement.

Why?

> In C++, I can use template.

If you want to write C++ code, then you should use a C++
compiler.

> How to do not use 'if' statement in python?

In python you use the 'if' statement.

-- 
Grant Edwards                   grante             Yow! I am covered with
                                  at               pure vegetable oil and I am
                               visi.com            writing a best seller!
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to