Am 24.11.2010 01:21, schrieb average:
On Mon, Nov 22, 2010 at 3:23 AM, Jan Kaliszewski <zuo@chopin.edu.pl <mailto:zuo@chopin.edu.pl>> wrote:
> I'd be happy with: > > * {:} for empty dict() (as a collection of key-value *pairs*) > * {.} for empty set() (as a similar collection of *single* elements) > > And {} for empty dict() as well -- to keep compatibility (maybe to be > deprecated later).
PS. Another argument: {} is criticized for its similarity to () (when using some fonts).
That is sometimes true, but one should bend towards fixing the font problem rather than adapting to brokenness....
Yep. Otherwise you would also need to forbid "1" in identifiers because it can easily be confused with "l" in some fonts. (And of course, let's not speak of identifiers in Python 3 in this context...) Georg