[issue10592] pprint module doesn't work well with OrderedDicts

2010-11-30 Thread Raymond Hettinger
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

[issue10594] Typo in PyList_New doc.

2010-11-30 Thread Raymond Hettinger
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

[issue5088] optparse: inconsistent default value for append actions

2010-11-30 Thread Raymond Hettinger
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. --

<    1   2