On Thu, Apr 25, 2013 at 9:12 PM, MRAB <pyt...@mrabarnett.plus.com> wrote: >> Only when you write it out like that as constants. It's no more, >> or less, strange than str('spam') or int(1) or list([]). Why >> would you do that? >> > None is a singleton, but instances of str, int, list, etc aren't. Why > can it take an argument when there's only ever one of them? > > That's why it seems strange to me.
How about bool? False and True are singletons much like None is, and bool(False) == False; bool(True) == True. Sure the distinction is that all of those are useful as conversion functions, whereas NoneType would never be used that way. -- Devin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com