Can global variable be passed into Python function?

Chris Angelico rosuav at gmail.com
Fri Feb 28 21:00:42 EST 2014


On Sat, Mar 1, 2014 at 10:06 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> A colleague of mine taught me decades back that the whole point of OO
> was the avoidance of if and switch statements. So if your code has an if
> or switch statement, chances are you are doing something wrong.
>
> I agree.

*boggle*

Are you seriously suggesting that every condition requires the
declaration of an object type? UGH! No thank you.

ChrisA



More information about the Python-list mailing list