True inconsistency in Python
Gerrit Holl
gerrit at nl.linux.org
Thu Nov 13 15:16:47 EST 2003
Alex Martelli wrote:
(about x vs. bool(x))
> [[ we TOLD Guido people would start on this absurd path, when
> he added bool, True, and False, but he wouldn't listen...
> ]]
What do double square brackets mean?
(btw, I _do_ use bool ocasionally: I implemented an anytrue() function
using sum([bool(i) for i in L]), is this wrong?)
Gerrit.
--
128. If a man take a woman to wife, but have no intercourse with her,
this woman is no wife to him.
-- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Kom in verzet tegen dit kabinet:
http://www.sp.nl/
More information about the Python-list
mailing list