On 2013-11-06 20:21, Dave Angel wrote:
The plus operator doesn't append to the list; it makes a new one.
Doesn't meet spec.
Right.
It seems then that one could be critical of the assignment in that it is
requiring a function that has side effects which is something that
should be discouraged. To be fair, the name of the function
('transform') does suggest that it will change something (but does not
suggest that anything will be returned.)
Comments?
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor