builtin set literal

Paul Rubin http
Tue Feb 20 11:35:44 EST 2007


bearophileHUGS at lycos.com writes:
> Unrelated: Ruby and Lisp use ? and ! at the end of the function/method
> names to denote a predicate or a function that mutates in place (With
> them the list.sort() may be called list.sort!() ). Using Python I
> usually put an Q at the end of the name for this purpose. Can Py 3.0
> support names ending with "?" too?

I don't think that's part of the plan.  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().  



More information about the Python-list mailing list