News for hackers. Stuff that matters.
Re:Python dicts are now ordered by zeroimpl on Friday February 07, 2020 @09:15PM (#22273304)
Would you expect it to do that if somebody wrote the following?

    $id = 12835151;
    $arr[$id] = Get_thing_with_id( $id );
Re:Python dicts are now ordered by mattkrause on Saturday February 08, 2020 @05:25PM (#22278943)
If $arr were an array I would, though I'd cringe at the wasted space (unless it were a sparse array).

Obviously, I'd agree that a map/associative array/dict/etc is a better choice here; I'm just annoyed about the name.

Re:Python dicts are now ordered by jrwr on Saturday February 08, 2020 @03:41AM (#22274746)
In my bog standard PHP I would do $thing = Get_thing_with_id( $id ); if(!empty($thing)){process($thing);}
Re:Python dicts are now ordered by jhasse on Saturday February 08, 2020 @02:44AM (#22274562)
yes.