NoneType List
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Dec 31 19:21:05 EST 2022
On 1/01/23 11:36 am, avi.e.gross at gmail.com wrote:
> And, of course, we had the philosophical question of why the feature was
> designed to not return anything ... rather than return the changed
> object.
My understanding is that Guido designed it that way to keep a
clear separation between mutating and non-mutating methods, and
to help catch mistakes resulting from mixing them up.
--
Greg
More information about the Python-list
mailing list