Equivalents of Ruby's "!" methods?
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Mon Aug 25 11:32:55 EDT 2008
On Mon, 25 Aug 2008 06:21:09 -0700, Paul McGuire wrote:
> On Aug 25, 7:52 am, "Simon Mullis" <si... at mullis.co.uk> wrote:
>> Consider the following hash:
>>
>> h = { "1" : "a\r", "2" : "b\n" }
>
> In Python, this called a "dict". "hash" sounds so... perlish.
A hash is also a mixture, a jumble or mess, as in hash browns, or as in
"to make a hash of something".
Also, a hash table is the conventional Computer Science term for what
Python calls dicts and Perl calls associative arrays.
--
Steven
More information about the Python-list
mailing list