List append help
David Lewis
DavidMLewis.NO at SPAM.mac.com
Sun Mar 14 07:26:39 EST 2004
In article <1058329gsgeq85f at corp.supernews.com>, Bill wrote:
> Thank you, This was really bugging me. To help me understand, do you know
> why the return value was None even though it was added to the list?
It¹s a philosophical decision made throughout Python. When an operation
is destructive (i.e. it changes the object on which it operates rather
than returning a new, changed, object), it returns None to emphasize
the point.
Best,
David
More information about the Python-list
mailing list