Raymond Hettinger added the comment:
I'll discuss with Benjamin. This could be construed as a simple bug fix. The
code is already in Py3.1.
Line 155:
- items = _sorted(object.items())
+ items = (list if issubclass(typ, OrderedDict) else _sorted)(object.items())
--
assignee: -> benj
Raymond Hettinger added the comment:
This is fine. Go ahead and backport if you feel so inclined.
--
assignee: d...@python -> eli.bendersky
nosy: +rhettinger
priority: normal -> low
resolution: -> accepted
versions: -Python 2.6
___
Python tracker
Raymond Hettinger added the comment:
Note, the :attr:`~Option.dest` variable is a list which includes default
values if any are defined. Options on the command-line are appended to
this list. Accordingly, the list may contain both the default value and
the value passed on the command-line.
--
101 - 103 of 103 matches
Mail list logo