Skip to content
  • Paul Sokolovsky's avatar
    py: Implement core of OrderedDict type. · 0ef01d0a
    Paul Sokolovsky authored
    Given that there's already support for "fixed table" maps, which are
    essentially ordered maps, the implementation of OrderedDict just extends
    "fixed table" maps by adding an "is ordered" flag and add/remove
    operations, and reuses 95% of objdict code, just making methods tolerant
    to both dict and OrderedDict.
    
    Some things are missing so far, like CPython-compatible repr and comparison.
    
    OrderedDict is Disabled by default; enabled on unix and stmhal ports.
    0ef01d0a