Commit Graph

68 Commits

Author SHA1 Message Date
Irit Katriel
ff420f0e08 bpo-28850: Fix PrettyPrinter.format overrides ignored for contents of small containers (GH-22120) 2020-11-23 15:31:31 +02:00
Irit Katriel
582f13786b bpo-39994: Fix pprint handling of dict subclasses that override __repr__ (GH-21892)
Co-authored-by: Palak Kumar Jha
2020-08-30 20:29:53 +03:00
Carl Bordum Hansen
06a8916cf4 bpo-37376: pprint support for SimpleNamespace (GH-14318)
https://bugs.python.org/issue37376
2019-06-26 16:13:18 -07:00
Rémi Lapeyre
96831c7fcf bpo-30670: Add pp function to the pprint module (GH-11769) 2019-03-22 10:22:20 -07:00
Victor Stinner
8db5b54463 bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)
TextTestRunner of unittest.runner now uses time.perf_counter() rather
than time.time() to measure the execution time of a test: time.time()
can go backwards, whereas time.perf_counter() is monotonic.

Similar change made in libregrtest, pprint and random.
2018-12-17 11:30:34 +01:00
Serhiy Storchaka
6a7b3a77b4 Issue #26778: Fixed "a/an/and" typos in code comment and documentation. 2016-04-17 08:32:47 +03:00
Serhiy Storchaka
8eb1f077c2 Issue #18682: Optimized pprint functions for builtin scalar types. 2015-05-16 21:38:05 +03:00
Serhiy Storchaka
bedbf96e84 Issue #23870: The pprint module now supports all standard collections
except named tuples.
2015-05-12 13:35:48 +03:00
Serhiy Storchaka
62aa7dc7c9 Issue #22721: An order of multiline pprint output of set or dict containing
orderable and non-orderable elements no longer depends on iteration order of
set or dict.
2015-04-06 22:52:44 +03:00
Serhiy Storchaka
aa4c36fbbb Issue #23775: pprint() of OrderedDict now outputs the same representation
as repr().
2015-03-26 08:51:33 +02:00
Serhiy Storchaka
f3fa308817 Issue #23776: Removed asserts from pprint.PrettyPrinter constructor. 2015-03-26 08:43:21 +02:00
Serhiy Storchaka
87eb482e30 Issue #23502: The pprint module now supports mapping proxies.
In particular the __dict__ attributes of building types.
2015-03-24 19:31:50 +02:00
Serhiy Storchaka
022f20376a Issue #17530: pprint now wraps long bytes objects and bytearrays. 2015-03-24 19:22:37 +02:00
Serhiy Storchaka
8e2aa88a40 Issue #23741: Slightly refactor the pprint module to make it a little more
extesible.  No public API is added.
2015-03-24 18:45:23 +02:00
Serhiy Storchaka
a750ce3325 Issue #19105: pprint now more efficiently uses free space at the right. 2015-02-14 10:55:19 +02:00
Serhiy Storchaka
fe3dc376fa Issue #19104: pprint now produces evaluable output for wrapped strings. 2014-12-20 20:57:15 +02:00
Antoine Pitrou
7d36e2fc5c Remove builtin "caching" in pprint 2013-10-03 21:29:36 +02:00
Serhiy Storchaka
57d5c08966 Use cached builtins. 2013-10-02 19:15:54 +03:00
Serhiy Storchaka
7c411a4041 Issue #19132: The pprint module now supports compact mode. 2013-10-02 11:56:18 +03:00
Serhiy Storchaka
092bd388ce Issue #19137: The pprint module now correctly formats instances of set and
frozenset subclasses.
2013-10-02 11:43:30 +03:00
Serhiy Storchaka
51844384f4 Issue #19137: The pprint module now correctly formats instances of set and
frozenset subclasses.
2013-10-02 11:40:49 +03:00
Antoine Pitrou
64c16c3311 Issue #17150: pprint now uses line continuations to wrap long string literals. 2013-03-23 20:30:39 +01:00
Florent Xicluna
d6da90f93d Issues #10017 and #14998: Fix TypeError using pprint on dictionaries with unorderable key. 2012-07-21 11:17:38 +02:00
Raymond Hettinger
bad3c88094 Have pprint() respect the order in an OrderedDict. 2010-09-09 12:31:00 +00:00
Raymond Hettinger
a7da1663ec Issue 3976: fix pprint for sets, frozensets, and dicts containing unorderable types. 2009-11-19 01:07:05 +00:00