[BangPypers] Dictionary in Python - A doubt

Sateesh Kumar sateeshpyper at gmail.com
Wed Mar 30 09:10:56 CEST 2011


On Thu, Mar 24, 2011 at 5:34 PM, Jins Thomas <jinsthomas at gmail.com> wrote:

>
> I was just comparing hash in Perl. In Perl 'if i in count:  else:'
> statement
> is not required i could simply uses count{i} +=1 even if it exists or not
> exists.


This is a Perl feature known as autovivification.
http://en.wikipedia.org/wiki/Autovivification


reg,
sateesh


More information about the BangPypers mailing list