endolith added the comment: I ran into this bug with sets, too.
Expected: {6, 5, 3} Got: set([5, 3, 6]) Documentation should illustrate how the function is actually meant to be used, not contrived examples that convert to sorted output purely so that doctest can understand them. doctest should be changed (or have an option) to understand object equality rather than exact text output. ---------- nosy: +endolith _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3332> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com