Skip to content
Advertisement

Tag: nonetype

When should I use None vs False?

From what I’ve seen, the only time None and False behave differently is when they’re compared to each other (for equality). Am I missing something, or is it ok to use only one or the other as long as you’re consistent in your usage? Is there any reason to use one over the other? Answer I would emphasize here the

What is a ‘NoneType’ object?

I’m getting this error when I run my python script: I’m pretty sure the ‘str’ means string, but I dont know what a ‘NoneType’ object is. My script craps out on the second line, I know the first one works because the commands from that line are in my asa as I would expect. At first I thought it may

Advertisement