Skip to content

Frozenset bug. #12

@jonathanslenders

Description

@jonathanslenders
pprintpp.pprint({6,frozenset({78, 32, 342}),8})

fails with

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jonathan/.virtualenvs/.../local/lib/python2.7/site-packages/pprintpp.py", line 94, in pprint
    printer.pprint(object)
  File "/home/jonathan/.virtualenvs/.../local/lib/python2.7/site-packages/pprintpp.py", line 236, in pprint
    self._format(object, state)
  File "/home/jonathan/.virtualenvs/.../local/lib/python2.7/site-packages/pprintpp.py", line 349, in _format
    self._format_nested_objects(object, state, typeish=typeish)
  File "/home/jonathan/.virtualenvs/.../local/lib/python2.7/site-packages/pprintpp.py", line 280, in _format_nested_objects
    oneline=True)
  File "/home/jonathan/.virtualenvs/.../local/lib/python2.7/site-packages/pprintpp.py", line 310, in _write_nested_real
    object = _sorted(object)
  File "/home/jonathan/.virtualenvs/.../local/lib/python2.7/site-packages/pprintpp.py", line 117, in _sorted
    return sorted(iterable)
TypeError: can only compare to a set

(I didn't had time to look further into this issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions