List append help


Sun Mar 14 10:01:13 EST 2004


Thank you!

David Lewis <DavidMLewis.NO at SPAM.mac.com> wrote:
>
>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