dictionary method question

Michael Hudson mwh at python.net
Wed Apr 24 09:46:29 EDT 2002


"Raymond Hettinger" <python at rcn.com> writes:

> A resize operation will reorder the keys.  Because resize removes
> dummy entries for previously deleted items, the order may change
> even if the contents of the dictionary remain the same.

But you can't trigger a resize without modifying the dictionary (well,
before 2.2 assigning to a key already in the dictionary could trigger
a resize but that was accidental).

Relavent?  Nope.

Cheers,
M.

-- 
  If you give someone Fortran, he has Fortran.
  If you give someone Lisp, he has any language he pleases.
    -- Guy L. Steele Jr, quoted by David Rush in comp.lang.scheme.scsh



More information about the Python-list mailing list