News for hackers. Stuff that matters.
Re:DotDict: A simple Python library to make chained attribut... by kshay on Wednesday August 02, 2023 @05:38PM (#36977972)
So basically Perl autovivification for Python?
Re:DotDict: A simple Python library to make chained attribut... by sekia on Friday August 04, 2023 @02:11AM (#36996056)
Seems a subset of it. Practicality aside, Perl can autovivify not only hashes but also arrays:

  my %x;
  $x{foo}[1]{bar} = 42;  # %x is ( foo => [ undef, { bar => 42 } ] )