builtin set literal
Dave Opstad
dave.opstad at monotypeimaging.com
Wed Feb 21 10:41:30 EST 2007
In article <7xk5yc7pnj.fsf at ruckus.brouhaha.com>,
Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:
> [...] However, Python seems to use the -ed suffix for the
> non-mutating versions of these functions, e.g. sorted(list) instead
> of the mutating list.sort().
I've found this to be useful in my own Python libraries. For instance, a
graphic object has move(), scale() etc. methods which mutate, and
moved(), scaled() etc. methods which return new instances. It's
English-specific, but still mnemonically useful.
More information about the Python-list
mailing list