naming convention for functions that mutate their arguments?

Terry Reedy tjreedy at udel.edu
Thu Feb 26 21:18:05 EST 2004


"mike p." <a at b.c> wrote in message news:c1lgcf$m00$1 at aplcore.jhuapl.edu...
> Hi all,
>
> I was wondering if there was any official/recommended way to denote that
a
> Python function may mutate one or more of its arguments?

The list mutation methods all return None to remind of this.  Otherwise,
read doc strings.

Terry J. Reedy







More information about the Python-list mailing list