Implicit conversion to boolean in if and while statements

Rick Johnson rantingrickjohnson at
Mon Feb 11 13:18:36 CET 2013

On Sunday, February 10, 2013 5:37:46 AM UTC-6, Steven D'Aprano wrote:
> Rick Johnson wrote:
> > IMO "Set Types" should only exists as a concequence of "freezing" an
> > array,
> Sets are not frozen lists.

Indeed. That wording was a bit clumsy on my part.

> > and should have NO literal syntax available. 

I may have spoken too soon on this issue. My reasoning for /not/ having a literal set syntax was due to symbol congestion, however as i described in another post, the problem can be solved by literally "type declaring" the literal.

More information about the Python-list mailing list