Top "Nonetype" questions

Nonetype refers to an object or type whose value is null (none).

Why do I get AttributeError: 'NoneType' object has no attribute 'something'?

I keep getting an error that says AttributeError: 'NoneType' object has no attribute 'something' The code I have is too …

python attributeerror nonetype
Python `if x is not None` or `if not x is None`?

I've always thought of the if not x is None version to be more clear, but Google's style guide and …

python coding-style nonetype boolean-expression pep8
not None test in Python

Out of these not None tests. if val != None: if not (val is None): if val is not None: Which …

python nonetype
TypeError: 'NoneType' object is not iterable in Python

What does error TypeError: 'NoneType' object is not iterable mean? I am getting it on this Python code: def write_…

python nonetype
How to "test" NoneType in python?

I have a method that sometimes returns a NoneType value. So how can I question a variable that is a …

python nonetype
Return None if Dictionary key is not available

I need a way to get a dictionary value if its key exists, or simply return None, if it does …

python dictionary key nonetype
What is a 'NoneType' object?

I'm getting this error when I run my python script: TypeError: cannot concatenate 'str' and 'NoneType' objects I'm pretty sure …

python null nonetype
Python NoneType object is not callable (beginner)

It tells me line 1 and line 5 (new to debugging/programming, not sure if that helps) def hi(): print('hi') def …

python nonetype
remove None value from a list without removing the 0 value

This was my source I started with. My List L = [0, 23, 234, 89, None, 0, 35, 9] When I run this : L = filter(None, L) I …

python list filter nonetype
'NoneType' object is not subscriptable?

list1 = ["name1", "info1", 10] list2 = ["name2", "info2", 30] list3 = ["name3", "info3", 50] MASTERLIST = [list1, list2, list3] def printer(lst): print ("Available Lists:") for …

python python-3.x nonetype