TypeError: iterable argument required

Terry Reedy tjreedy at udel.edu
Wed Apr 6 19:06:52 CEST 2011


On 4/6/2011 6:06 AM, Νικόλαος Κούρας wrote:

> Now it works like i wanted but i want to ask you if i wrote it
> correctly, especially when i check against `""` and None

One important note: there is one and one one None object; there can be 
multiple strings with value ''. So, testing against each is different:
a is None; a is not None
a == ''; a != ''

-- 
Terry Jan Reedy





More information about the Python-list mailing list