[Python-3000] Set literals - another try
Guido van Rossum
guido at python.org
Wed Aug 9 20:45:34 CEST 2006
On 8/8/06, Collin Winter <collinw at gmail.com> wrote:
> I thought one of the main arguments in favor of set literals is that a
> literal form would allow the compiler to perform optimisations that
> the set(...) spelling doesn't allow.
Let me clear up this misunderstanding. Optimizations have nothing to
do with it (they would be invalid anyway since sets are mutable). It's
a matter of writing more readable code.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list