New submission from INADA Naoki <songofaca...@gmail.com>:

csv and re has issues already.
There are some remaining OrderdDict, including docstring.
It looks like some of them can be removed easily without doc update.

This is `ag --exclude-dir=test OrderedDict`, exluding csv, re, pprint and 
collections.

typing:
2109:    nm_tpl.__annotations__ = nm_tpl._field_types = 
collections.OrderedDict(types)

unittest/util.py
3:from collections import namedtuple, OrderedDict
158:    c = OrderedDict()

enum.py
153:        enum_class._member_map_ = OrderedDict()      # name->value map
615:        # We use an OrderedDict of sorted source keys so that the

lib2to3/pgen2/grammar.py
91:        dump() recursively changes all dict to OrderedDict, so the pickled 
file
93:        pickled file to create the tables, but  only changes OrderedDict to 
dict
94:        at the top level; it does not recursively change OrderedDict to dict.
96:        passed to load() in that some of the OrderedDict (from the pickled 
file)
98:        performance because OrderedDict uses dict's __getitem__ with nothing 
in
142:        return collections.OrderedDict(

asyncio/base_events.py
842:                addr_infos = collections.OrderedDict()

configparser.py
142:from collections import OrderedDict as _default_dict, ChainMap as _ChainMap

inspect.py
52:from collections import namedtuple, OrderedDict
1712:    new_params = OrderedDict(old_params.items())
2563:    * arguments : OrderedDict
2663:        self.arguments = OrderedDict(new_arguments)
2694:    * parameters : OrderedDict
2724:            params = OrderedDict()
2727:                params = OrderedDict()
2762:                params = OrderedDict(((param.name, param)
2839:        arguments = OrderedDict()

json/tool.py
41:                                object_pairs_hook=collections.OrderedDict)

json/__init__.py
31:    >>> from collections import OrderedDict
32:    >>> mydict = OrderedDict([('4', 5), ('6', 7)])
290:    collections.OrderedDict will remember the order of insertion). If
318:    collections.OrderedDict will remember the order of insertion). If

json/decoder.py
297:        collections.OrderedDict will remember the order of insertion). If

email/_header_value_parser.py
73:from collections import OrderedDict
720:        params = OrderedDict()

pydoc_data/topics.py
8585:                 '"collections.OrderedDict" to remember the order that 
class '
8593:                 '           return collections.OrderedDict()\n'
8614:                 'empty "collections.OrderedDict".  That mapping records 
the '

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32360>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to