[issue39994] Redundant code in pprint module.

2020-03-19 Thread Palak Kumar Jha
Change by Palak Kumar Jha : -- nosy: +fdrake versions: -Python 3.7 ___ Python tracker <https://bugs.python.org/issue39994> ___ ___ Python-bugs-list mailin

[issue39994] Redundant code in pprint module.

2020-03-17 Thread Palak Kumar Jha
Change by Palak Kumar Jha : -- keywords: +patch pull_requests: +18397 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19046 ___ Python tracker <https://bugs.python.org/issu

[issue39994] Redundant code in pprint module.

2020-03-17 Thread Palak Kumar Jha
New submission from Palak Kumar Jha : In the PrettyPrinter._format method, since self._dispatch has dict.__repr__ [key] mapped to self._pprint_dict [value] the elif block is not needed. Its work is already being done by the if block above, which searches self._dispatch to fetch the