it is simply ugly to compare a boolean variable to
This way you will also avoid stupid mistakes like comparing condition to some global? variable
If you didn't get it so far - it is
True
or False
like you do. Don't do it, follow @metullburr's advise.This way you will also avoid stupid mistakes like comparing condition to some global? variable
true
. I say global variable, but it well may be in the tweepy code missing in the example. Because otherwise the interpreter will raise NameError.If you didn't get it so far - it is
True
, not true