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


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to