On Tue, Mar 25, 2014 at 9:24 PM, Antoon Pardon
<antoon.par...@rece.vub.ac.be> wrote:
> No they didn't have to. With the transition to python3, the developers
> could have opted for empty braces to mean an empty set. And if they
> wanted a literal for an empty dictionary, they might have chosen {:}.
> Backward-compatibility was already broken so that wasn't an argument.

Python 3.0 didn't just say "to Hades with backward compatibility". The
breakage was only in places where it was deemed worthwhile. Changing
the meaning of {} would have only small benefit and would potentially
break a LOT of programs, so the devs were right to not do it.

Python 3 and Python 2 are not, contrary to some people's opinions,
completely different languages.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to