26 Jun 2002 26 Jun '02
Barry A. Warsaw wrote:
"RH" == Raymond Hettinger email@example.com writes:
RH> Second wild idea of the day: RH> The dict constructor currently accepts sequences where each RH> element has length 2, interpreted as a key-value pair. RH> Let's have it also accept sequences with elements of length 1, RH> interpreted as a key:None pair.
None might be an unfortunate choice because it would make dict.get() less useful. I'd prefer key:1
How about key:True ?
Bye, Walter Dörwald