Implicit conversion to boolean in if and while statements
Rick Johnson
rantingrickjohnson at gmail.com
Sat Feb 9 23:26:18 EST 2013
On Friday, February 8, 2013 11:01:00 PM UTC-6, Chris Angelico wrote:
> [...]
> Another advantage of using two characters: There's no conflict between
> set and dict literals. How do you notate an empty set in Python? {}
> means an empty dict.
What makes you believe that a language must provide literal syntax for EACH and EVERY type? And BTW, if you don't already know, this is how you notate an empty set in Python:
py> set([])
set([])
IMO "Set Types" should only exists as a concequence of "freezing" an array, and should have NO literal syntax avaiable.
More information about the Python-list
mailing list