Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: John Bokma Newsgroups: comp.lang.python Subject: Re: Why did Quora choose Python for its development? Date: Sun, 22 May 2011 18:55:11 -0500 Organization: Castle Amber Lines: 14 Message-ID: <877h9i5m00.fsf@castleamber.com> References: <80d59383-36a3-4744-85c4-1a0577f1d3a6@dr5g2000vbb.googlegroups.com> <9CDC4B2CD1F445E994119A50F65155DF@teddy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net 9qYTPa429XVrFsNRYDYXWQpGSnPvA6Pdz/MCpLXRZj1tJZ2bkl Cancel-Lock: sha1:B7xfx/CUqgrrkkw4a/IUk+uOcnk= sha1:ETYpQp9Rc4/mqkWbVjYdgXeBMg4= X-Url: http://johnbokma.com/ User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6027 Terry Reedy writes: > I forget the exact question you asked, but this list is not the > doc. The doc section on dicts gives dict(list_of_key_value_pairs) as > the one true way, given such an input. The Perl way cannot be clearer > and can only be shorted if it uses something shorter that dict(). my %hash = @list_of_key_value_pairs; -- John Bokma j3b Blog: http://johnbokma.com/ Perl Consultancy: http://castleamber.com/ Perl for books: http://johnbokma.com/perl/help-in-exchange-for-books.html