Top "Nonetype" questions

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

Assigning NoneType to Dict

I am trying to assign None to a key in a dict, but I am getting a TypeError: self._rooms[…

python list dictionary typeerror nonetype
TypeError: coercing to Unicode, need string or buffer, NoneType found

Currently writing a function for a program and one component is to search whether a single variables are being used …

python function typeerror traceback nonetype
Python - AttributeError: 'NoneType' object has no attribute 'findAll'

I have written my first bit of python code to scrape a website. import csv import urllib2 from BeautifulSoup import …

python attributes findall nonetype
None vs Empty String in Python

I have an existing application which connects to a database. It is running under Python 2.7. The application is inconsistent in …

python null nonetype
CSV reader behavior with None and empty string

I'd like to distinguish between None and empty strings ('') when going back and forth between Python data structure and …

python csv string nonetype
Determining a variable's type is NoneType in python

I would like to check if a variable is of the NoneType type. For other types we can do stuff …

python python-3.x types nonetype
Python CSV Has No Attribute 'Writer'

There's a bit of code giving me trouble. It was working great in another script I had but I must …

csv python-2.7 nonetype
pandas combine two columns with null values

I have a df with two columns and I want to combine both columns ignoring the NaN values. The catch …

python pandas dataframe nonetype
Python 3 type hinting for None?

def foo( hello: str='world', bar: str=None, another_string_or_None: str|????=None): pass I'm trying to set a …

python python-3.x nonetype type-hinting
How to count the number of occurrences of `None` in a list?

I'm trying to count things that are not None, but I want False and numeric zeros to be accepted too. …

python boolean list-comprehension nonetype