{"issue":{"title":"Improved doctest coverage for combinatorics","user":{"login":"SgtMook","id":1211062,"url":"https://api.github.com/users/SgtMook","avatar_url":"https://secure.gravatar.com/avatar/93e88472940b62caf074da35d65f3f73?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"93e88472940b62caf074da35d65f3f73"},"created_at":"2011-12-22T05:47:03Z","milestone":null,"labels":[{"name":"GCI","url":"https://api.github.com/repos/sympy/sympy/labels/GCI","color":"e102d8"}],"state":"closed","updated_at":"2011-12-24T17:21:35Z","id":2634236,"closed_at":"2011-12-23T13:42:32Z","html_url":"https://github.com/sympy/sympy/issues/876","pull_request":{"patch_url":"https://github.com/sympy/sympy/pull/876.patch","html_url":"https://github.com/sympy/sympy/pull/876","diff_url":"https://github.com/sympy/sympy/pull/876.diff"},"body":"Improved doctest coverage for combinatorics\r\n\r\nAdded doctests and documentations where it was missing. Made two methods in permutations and another in subsets private, as they are defined and used only inside another method. Two methods in subsets are still not implemented, and have no documentation/doctest.\r\n\r\nGCI Task: http://www.google-melange.com/gci/task/view/google/gci2011/7230272","number":876,"url":"https://api.github.com/repos/sympy/sympy/issues/876","comments":9,"assignee":null},"comment":{"user":{"login":"asmeurer","id":71486,"url":"https://api.github.com/users/asmeurer","avatar_url":"https://secure.gravatar.com/avatar/0383e4cae325f65a1bbd906be4be2276?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0383e4cae325f65a1bbd906be4be2276"},"created_at":"2011-12-24T17:21:35Z","updated_at":"2011-12-24T17:21:35Z","id":3268362,"body":"There is now in master a doctest problem in Python 3.  I'm assuming it's the result of this branch.\r\n\r\n```python\r\n__________________________________________________________________________________ sympy.combinatorics.prufer.Prufer.rank __________________________________________________________________________________\r\nFile \"/Users/aaronmeurer/Documents/Python/sympy/sympy-scratch/py3k-sympy/sympy/combinatorics/prufer.py\", line 11, in sympy.combinatorics.prufer.Prufer.rank\r\nFailed example:\r\n    p.next().rank\r\nException raised:\r\n    Traceback (most recent call last):\r\n      File \"/sw/lib/python3.2/doctest.py\", line 1253, in __run\r\n        compileflags, 1), test.globs)\r\n      File \"<doctest sympy.combinatorics.prufer.Prufer.rank[3]>\", line 1, in <module>\r\n        p.next().rank\r\n    AttributeError: 'Prufer' object has no attribute 'next'\r\n```","url":"https://api.github.com/repos/sympy/sympy/issues/comments/3268362"},"action":"created"}