[issue27495] Pretty printing sorting for set and frozenset instances

2020-10-25 Thread Ben Bonenfant
Change by Ben Bonenfant : -- nosy: +bbonenfant nosy_count: 6.0 -> 7.0 pull_requests: +21894 pull_request: https://github.com/python/cpython/pull/22977 ___ Python tracker ___

[issue27495] Pretty printing sorting for set and frozenset instances

2020-05-24 Thread SilentGhost
SilentGhost added the comment: Serhiy, would you be interested in converting your patch to a PR? -- versions: +Python 3.10 ___ Python tracker ___

[issue27495] Pretty printing sorting for set and frozenset instances

2019-12-13 Thread SilentGhost
Change by SilentGhost : -- nosy: +SilentGhost type: enhancement -> behavior versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker ___

[issue27495] Pretty printing sorting for set and frozenset instances

2016-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: There seems to be consensus that this should be treated as a bug fix, not a new feature. Could this still make it into 3.6 even though it missed the first beta? -- nosy: +steven.daprano ___ Python tracker

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following patch adds support of all standard collections in pprint.saferepr(). -- Added file: http://bugs.python.org/file43864/saferepr_collections.patch ___ Python tracker

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-13 Thread Danilo J. S. Bellini
Danilo J. S. Bellini added the comment: Wouldn't a fix for all standard collections be a fix for Python 3.5+, therefore another issue? http://bugs.python.org/issue23870 This issue is about sets/frozensets Python 3.2+, and I'm pretty sure it's backwards compatible, as I don't think any code

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since pprint() now supports all standard collections, I think it is worth to support them in saferepr() too. I have written an implementation and am finishing writing tests. -- ___ Python tracker

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for treating this as a bug fix. -- ___ Python tracker ___ ___

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: +1 It could reasonably be argued that not sorting is a bug for already-released 3.x versions. -- ___ Python tracker

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +rhettinger, serhiy.storchaka type: behavior -> enhancement versions: -Python 3.5 ___ Python tracker

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-12 Thread SilentGhost
Changes by SilentGhost : -- nosy: +fdrake stage: -> patch review versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-12 Thread Danilo J. S. Bellini
New submission from Danilo J. S. Bellini: The pprint pretty printer in Python 3 sorts sets/frozensets only if their length don't fit in one single line/row for the given width, else it was just leaving repr(my_set_instance) alone, like: >>> import string, pprint >>>