python - Do groups in h5py preserve the order in which its members were added? -
the h5py docs that group.keys()
returns group's members list in python 2, , set-like view in python3.
in either case, can assume when iterating through group.keys()
, i'll iterate through them in order in members added group?
my advice is: unless documentation explicitely states returned collection ordered, don't rely on it. fact set returned in python3 indicates keys not ordered — or order accidental.
Comments
Post a Comment