Why doesn't python's list append() method return the list itself?

Chris Rebert clp2 at rebertia.com
Mon Jul 12 01:50:46 EDT 2010


On Sun, Jul 11, 2010 at 10:03 PM, Nathan Rice
<nathan.alexander.rice at gmail.com> wrote:
> Yeah, I long ago filed the in place place in the same folder as
<snip>
> all() returning True for an empty iterable

If you weren't taught about vacuous truth (or even identity elements)
in Discrete Mathematics, someone fscked up. Said behavior is the
absolute correct behavior from a formal logic standpoint.

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list