How to do "new_variable = (variable) ? True : False; " (php) on python?

Dave Hansen iddw at hotmail.com
Fri Nov 18 18:48:28 EST 2005


On Fri, 18 Nov 2005 14:15:06 -0800 in comp.lang.python, Scott David
Daniels <scott.daniels at acm.org> wrote:

>
><yoda>
>Don't try to force everything to the type you expect,
>use things as they are; embrace duck-typing.
></yoda>

Wrong, the grammar you have.
Do not Everything to the type you expect force.
Do or do not, there is no try.
Things as they are use.
Duck-typing embrace.

>:-)

Ditto.  Regards,
                                        -=Dave

-- 
Change is inevitable, progress is not.



More information about the Python-list mailing list