checking if a list is empty
Hans Georg Schaathun
hg at schaathun.net
Thu May 12 01:21:28 EDT 2011
On 11 May 2011 21:47:27 GMT, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
: On Wed, 11 May 2011 20:13:35 +0100, Hans Georg Schaathun wrote:
: > One principle of object oriented programming is to bestow the objects
: > with properties reflecting known properties from the domain being
: > modelled. Lists do not have truth values in the application domain
:
: Yes they do. Empty lists are nothing, ergo false, and non-empty lists are
: something, ergo true.
What application domain has established that terminology?
--
:-- Hans Georg
More information about the Python-list
mailing list